#include <fileservlet.h>
Inheritance diagram for FileServlet:
Public Methods | |
FileServlet (QServletConfig *cfg) | |
~FileServlet () | |
bool | serveFile (const QString &path, QHttpServletResponse *res) |
bool | serveDirectory (const QString &path, QHttpServletResponse *res) |
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) |
Definition at line 13 of file fileservlet.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. |