#include <xmltooling/io/HTTPResponse.h>
Inheritance diagram for xmltooling::HTTPResponse:

Public Types | |
| enum | status_t { XMLTOOLING_HTTP_STATUS_OK = 200, XMLTOOLING_HTTP_STATUS_MOVED = 302, XMLTOOLING_HTTP_STATUS_UNAUTHORIZED = 401, XMLTOOLING_HTTP_STATUS_FORBIDDEN = 403, XMLTOOLING_HTTP_STATUS_NOTFOUND = 404, XMLTOOLING_HTTP_STATUS_ERROR = 500 } |
| Some common HTTP status codes. | |
Public Member Functions | |
| void | setContentType (const char *type) |
| Sets or clears the MIME type of the response. | |
| virtual void | setResponseHeader (const char *name, const char *value)=0 |
| Sets or clears a response header. | |
| virtual void | setCookie (const char *name, const char *value) |
| Sets a client cookie. | |
| virtual long | sendRedirect (const char *url)=0 |
| Redirect the client to the specified URL and complete the response. | |
| long | sendError (std::istream &inputStream) |
| Sends an "error" response to the client along with a transport-specific error indication. | |
| long | sendResponse (std::istream &inputStream) |
| Sends a completed response to the client along with a transport-specific "OK" indication. | |
| virtual long | sendResponse (std::istream &inputStream)=0 |
| Sends a completed response to the client along with a transport-specific "OK" indication. | |
| virtual long | sendResponse (std::istream &inputStream, long status)=0 |
| Sends a completed response to the client. | |
To supply information to the surrounding web server environment, a shim must be supplied in the form of this interface to adapt the library to different proprietary server APIs.
This interface need not be threadsafe.
|
|
Sends an "error" response to the client along with a transport-specific error indication.
Implements xmltooling::GenericResponse. |
|
|
Redirect the client to the specified URL and complete the response. Any headers previously set will be sent ahead of the redirect.
|
|
||||||||||||
|
Sends a completed response to the client.
|
|
|
Sends a completed response to the client along with a transport-specific "OK" indication. Used for "normal" responses.
|
|
|
Sends a completed response to the client along with a transport-specific "OK" indication. Used for "normal" responses.
Implements xmltooling::GenericResponse. |
|
|
Sets or clears the MIME type of the response.
Implements xmltooling::GenericResponse. |
|
||||||||||||
|
Sets a client cookie.
|
|
||||||||||||
|
Sets or clears a response header.
|
1.3.9.1