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

FileServlet Class Reference

A servlet that can serve files. More...

#include <fileservlet.h>

Inheritance diagram for FileServlet:

QHttpServlet QGenericServlet QServlet List of all members.

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)
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 can serve files.

Author:
Richard Moore

Definition at line 13 of file fileservlet.h.


Member Function Documentation

virtual QDateTime QHttpServlet::lastModified QHttpServletRequest   req [virtual, inherited]
 

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, 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