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

QHttpServletRequest Class Reference

An HTTP servlet request. More...

#include <qhttpservletrequest.h>

Inheritance diagram for QHttpServletRequest:

QServletRequest List of all members.

Public Methods

 QHttpServletRequest ()
virtual ~QHttpServletRequest ()
QString method () const
QString pathInfo () const
QString queryString () const
QString requestURI () const
QString version () const
QStringList headerNames () const
QString header (const QString &name) const
QDateTime dateHeader (const QString &name) const
int intHeader (const QString &name, bool *ok=0) const
bool readRequest (QTextStream *in)
bool readMethod (const QString &line)
bool hasHeaders () const
bool readHeader (const QString &line)
bool readHeaders (const QStringList &lines)
void dump (DocWriter *doc)
QString characterEncoding () const
void setCharacterEncoding (const QString &enc)
long contentLength () const
void setContentLength (long len)
QString contentType () const
void setContentType (const QString &mime)
virtual QIODevice * inputDevice ()
virtual QTextStream * inputStream ()
QString parameter (const QString &name)
QStringList parameterNames ()
QString protocol ()
void setProtocol (const QString &protocol)
QString remoteAddress () const
void setRemoteAddress (const QString &addr)
QString remoteHost () const
void setRemoteHost (const QString &host)
QString serverName () const
void setServerName (const QString &name)
int serverPort () const
void setServerPort (int port)

Protected Methods

void addHeader (const QString &name, const QString &val)

Detailed Description

An HTTP servlet request.

Richard Moore,

Definition at line 20 of file qhttpservletrequest.h.

Member Function Documentation

QDateTime QHttpServletRequest::dateHeader const QString &    name const

Returns the value of the named header as a QDateTime.

If the header did not form a value timestamp, you may find this method returns a null QDateTime.

int QHttpServletRequest::intHeader const QString &    name,
bool *    ok = 0

Returns the int value of the named header or 0 if it could not be parsed.

The ok parameter will be true if the value was parsed ok, false otherwise.

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