#include <qhttpservlet.h>
Inheritance diagram for QHttpServlet:
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) |
QServletConfig * | servletConfig () |
QString | servletInfo () |
QServletContext * | servletContext () |
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) |
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.
Definition at line 22 of file qhttpservlet.h.
|
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. |
|
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. |