#include <qhttpservletresponse.h>
Inheritance diagram for QHttpServletResponse:
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 QHttpServletRequest * | request () 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) |
Definition at line 20 of file qhttpservletresponse.h.
|
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. |