Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

EchoServlet Class Reference

A servlet that echos the incoming HTTP request. More...

#include <echoservlet.h>

Inheritance diagram for EchoServlet:

QHttpServlet QGenericServlet QServlet List of all members.

Public Methods

 EchoServlet (QServletConfig *cfg, const char *info=0)
 ~EchoServlet ()
virtual QDateTime lastModified (QHttpServletRequest *req)
virtual bool service (QServletRequest *req, QServletResponse *res)
void log (const QString &msg)
QServletConfigservletConfig ()
QString servletInfo ()
QServletContextservletContext ()

Protected Methods

virtual bool doGet (QHttpServletRequest *req, QHttpServletResponse *res)
virtual bool doPost (QHttpServletRequest *req, QHttpServletResponse *res)
virtual bool doOptions (QHttpServletRequest *req, QHttpServletResponse *res)
virtual bool doPut (QHttpServletRequest *req, QHttpServletResponse *res)
virtual bool doDelete (QHttpServletRequest *req, QHttpServletResponse *res)
virtual bool doTrace (QHttpServletRequest *req, QHttpServletResponse *res)

Detailed Description

A servlet that echos the incoming HTTP request.

Author:
Richard Moore

Definition at line 13 of file echoservlet.h.


Member Function Documentation

virtual QDateTime EchoServlet::lastModified QHttpServletRequest   req [virtual]
 

Returns the time the results of the specified request last changed.

The default implementation returns a null time to indicate that the content should always be reloaded.

Reimplemented from QHttpServlet.

virtual bool QHttpServlet::service QServletRequest   req,
QServletResponse   res
[virtual, inherited]
 

Reimplemented to call the appropriate doXXX(...) method.

Returns true if the request was successful, and false otherwise. Generally, subclasses should not reimplement this method, but should instead use the doXXX(...) methods.

Reimplemented from QGenericServlet.


The documentation for this class was generated from the following file:
Generated on Wed Apr 9 23:50:21 2003 for QXServlet by doxygen1.2.17