Inheritance diagram for ServletResponse:
Public Member Functions | |
this (IProviderBridge bridge) | |
void | reset () |
HttpMutableParams | getParameters () |
HttpMutableCookies | getCookies () |
HttpMutableHeaders | getHeaders () |
HttpWriter | getWriter () |
void | setContentLength (int len) |
void | setContentType (char[] type) |
void | flushBuffer () |
void | sendError (inout HttpStatus status, char[] msg) |
void | sendError (inout HttpStatus status) |
void | sendRedirect (char[] location) |
void | setStatus (inout HttpStatus status) |
bool | copyFile (ServletContext context, char[] path) |
Private Member Functions | |
this (IProviderBridge bridge, IBuffer headerSpace) | |
void | sendError (inout HttpStatus status, Exception ex) |
HttpStatus | getStatus () |
HttpMutableParams | getOutputParams () |
HttpMutableCookies | getOutputCookies () |
HttpMutableHeaders | getOutputHeaders () |
IBuffer | getOutputBuffer () |
void | write (IWriter writer) |
void | flush (IWriter writer) |
Static Private Member Functions | |
static | this () |
|
Create a Response instance. Note that we create a bunch of internal support objects on a per-thread basis. This is so we don't have to create them on demand; however, we should be careful about resetting them all before each new usage. Reimplemented from HttpResponse. Definition at line 71 of file ServletResponse.d. |
|
Reset this response, ready for the next connection Reimplemented from HttpResponse. Definition at line 81 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 91 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 100 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 109 of file ServletResponse.d. |
|
Return the output writer. This set a sentinel indicating that we cannot add any more headers (since they have to be flushed before any additional output is sent). Reimplemented from HttpResponse. Definition at line 118 of file ServletResponse.d. Referenced by copyFile(), flushBuffer(), and ServletProvider::service(). |
|
Reimplemented from IServletResponse. Definition at line 127 of file ServletResponse.d. References HttpMutableHeaders::addInt(), and HttpMessage::getHeader(). Referenced by copyFile(). |
|
Reimplemented from IServletResponse. Definition at line 137 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 146 of file ServletResponse.d. References getWriter(). |
|
The argument 'status' should be "inout" instead so as to enforce pass-by-reference semantics. However, one cannot do that with a const struct. D apparently still requires further development in this area. Reimplemented from HttpResponse. Definition at line 160 of file ServletResponse.d. Referenced by copyFile(), and ServletProvider::service(). |
|
The argument 'status' should be "inout" instead so as to enforce pass-by-reference semantics. However, one cannot do that with a const struct. D apparently still requires further development in this area. Reimplemented from HttpResponse. Definition at line 175 of file ServletResponse.d. |
|
Send a redirect response to the user-agent Reimplemented from HttpResponse. Definition at line 185 of file ServletResponse.d. |
|
The argument 'status' should be "inout" instead so as to enforce pass-by-reference semantics. However, one cannot do that with a const struct. D apparently still requires further development in this area. Reimplemented from HttpResponse. Definition at line 199 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 208 of file ServletResponse.d. References FilePath::getExtension(), ServletContext::getMimeType(), FileConduit::getPath(), ServletContext::getResourceAsFile(), getWriter(), FileConduit::length(), sendError(), and setContentLength(). |
|
Construct static instances of exceptions etc. Definition at line 201 of file HttpResponse.d. References HttpResponse::InvalidState. |
|
Construct this HttpMessage using the specified HttpBridge. The bridge provides a gateway to both the server and provider (servicer) instances. Definition at line 103 of file HttpMessage.d. References HttpMessage::bridge, Buffer, HttpMessage::buffer, and HttpMessage::headers. |
|
Send an error status to the user-agent, along with the provided exception text Definition at line 282 of file HttpResponse.d. References HttpResponse::sendError(). |
|
Return the current response status Definition at line 304 of file HttpResponse.d. References HttpResponse::status. |
|
Return the wrapper for adding output parameters Definition at line 331 of file HttpResponse.d. References HttpResponse::params. |
|
Return the wrapper for output cookies Definition at line 342 of file HttpResponse.d. References HttpResponse::cookies. |
|
Return the wrapper for output headers. Definition at line 353 of file HttpResponse.d. References HttpResponse::commited, and HttpResponse::InvalidState. |
|
Return the buffer attached to the output conduit. Note that further additions to the output headers is disabled from this point forward. Definition at line 369 of file HttpResponse.d. References HttpResponse::commit(), and HttpResponse::writer. |
|
Write the response and the output headers Reimplemented from HttpMessage. Definition at line 396 of file HttpResponse.d. References HttpResponse::commit(). |
|
Ensure the output is flushed Definition at line 407 of file HttpResponse.d. References HttpResponse::commit(), IWriter::flush(), Stdout, and version. Referenced by HttpResponse::sendError(), HttpResponse::sendRedirect(), and ServletProvider::service(). |