#include <qhttpservletrunner.h>
Public Methods | |
QHttpServletRunner () | |
virtual | ~QHttpServletRunner () |
QServletContext * | context () |
void | addServlet (const char *path, QHttpServlet *sv) |
bool | removeServlet (const char *path) |
QHttpServletRequest * | createRequest (QTextStream *in) |
QHttpServletResponse * | createResponse (QIODevice *out, QHttpServletRequest *req) |
bool | processRequest (QHttpServletRequest *req, QHttpServletResponse *res) |
QHttpServlet * | findServlet (QHttpServletRequest *req) |
Definition at line 22 of file qhttpservletrunner.h.
|
Makes the specified servlet available at the specified path. Note that the runner takes ownership of the servlet and will delete it if the servlet is removed. |
|
This method is called when the HTTP server asks us to handle a request. It despatches the request to the appropriate servlet which will populate the response object. If there is no servlet that can handle the request then a 404 response will be generated. This method returns true if the request was successfully handled, false otherwise. |
|
Removes the servlet that is mapped at the specified path. Returns false if no servlet was mapped at the path. |