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

QHttpServletResponse Class Reference

An HTTP servlet response. More...

#include <qhttpservletresponse.h>

Inheritance diagram for QHttpServletResponse:

QServletResponse List of all members.

Public Types

enum  ResponseStatus {
  StatusNull = 0, StatusContinue = 100, StatusSwitchingProtocols = 101, StatusOk = 200,
  StatusCreated = 201, StatusAccepted = 202, StatusNonAuthoritativeInformation = 203, StatusNoContent = 204,
  StatusResetContent = 205, StatusPartialContent = 206, StatusMultipleChoices = 300, StatusMovedPermanently = 301,
  StatusMovedTemporarily = 302, StatusSeeOther = 303, StatusNotModified = 304, StatusUseProxy = 305,
  StatusBadRequest = 400, StatusUnauthorised = 401, StatusPaymentRequired = 402, StatusForbidden = 403,
  StatusNotFound = 404, StatusMethodNotAllowed = 405, StatusInternalServerError = 500, StatusNotImplemented = 501
}

Public Methods

 QHttpServletResponse (QIODevice *out, QHttpServletRequest *req)
virtual ~QHttpServletResponse ()
virtual QTextStream * outputStream ()
void setStatus (int status)
int status () const
void addCookie (QCookie *cookie)
virtual QHttpServletRequestrequest () const
virtual bool sendMessage (const QString &msg=QString::null)
virtual bool sendError (int status, const QString &msg=QString::null)
virtual bool sendRedirect (const QString &location)
void sendHeaders (QTextStream *out)
QIODevice * outputDevice ()
bool hasOutputStream () const
void setContentLength (long len)
void setContentType (const QString &mime)
void setHeader (const QString &name, const QString &value)
void setHeader (const QString &name, int value)
void setHeader (const QString &name, const QDateTime &value)

Static Public Methods

QString statusString (int status)

Detailed Description

An HTTP servlet response.

Definition at line 20 of file qhttpservletresponse.h.


Member Function Documentation

virtual QTextStream* QHttpServletResponse::outputStream   [virtual]
 

Returns a text stream open for writing the output.

Note that the HTTP headers will be send the first time this method is called.

Reimplemented from QServletResponse.


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