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

QHttpServlet Class Reference

The base class of all HTTP servlets. More...

#include <qhttpservlet.h>

Inheritance diagram for QHttpServlet:

QGenericServlet QServlet EchoServlet FileServlet InfoServlet List of all members.

Public Methods

 QHttpServlet (QServletConfig *cfg, const char *info=0)
virtual ~QHttpServlet ()
virtual bool service (QServletRequest *req, QServletResponse *res)
virtual QDateTime lastModified (QHttpServletRequest *req)
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

The base class of all HTTP servlets.

This class provides a binding between a host HTTP server and its servlets that provides sensibe default implementations of the various methods. Implementing custom servlets is easy because the defaults mean you only have to reimplement the methods you actually use.

Author:
Richard Moore, rich@kde.org

Definition at line 22 of file qhttpservlet.h.


Member Function Documentation

virtual QDateTime QHttpServlet::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 in EchoServlet, and InfoServlet.

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

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:22 2003 for QXServlet by doxygen1.2.17