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 | |
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 68 of file ServletResponse.d. |
|
Reset this response, ready for the next connection Reimplemented from HttpResponse. Definition at line 78 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 88 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 97 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 106 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 115 of file ServletResponse.d. Referenced by ServletProvider::service(). |
|
Reimplemented from IServletResponse. Definition at line 124 of file ServletResponse.d. References HttpMutableHeaders::addInt(), and HttpMessage::getHeader(). Referenced by copyFile(). |
|
Reimplemented from IServletResponse. Definition at line 134 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 143 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 157 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 172 of file ServletResponse.d. |
|
Send a redirect response to the user-agent Reimplemented from HttpResponse. Definition at line 182 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 196 of file ServletResponse.d. |
|
Reimplemented from IServletResponse. Definition at line 205 of file ServletResponse.d. References FilePath::getExtension(), ServletContext::getMimeType(), FileConduit::getPath(), ServletContext::getResourceAsFile(), FileConduit::length(), sendError(), and setContentLength(). |
|
Construct static instances of exceptions etc. Definition at line 198 of file HttpResponse.d. |
|
Construct this HttpMessage using the specified HttpBridge. The bridge provides a gateway to both the server and provider (servicer) instances. Definition at line 100 of file HttpMessage.d. References HttpMessage::bridge, and Buffer. |
|
Send an error status to the user-agent, along with the provided exception text Definition at line 279 of file HttpResponse.d. References HttpResponse::sendError(). |
|
Return the current response status Definition at line 301 of file HttpResponse.d. |
|
Return the wrapper for adding output parameters Definition at line 328 of file HttpResponse.d. |
|
Return the wrapper for output cookies Definition at line 339 of file HttpResponse.d. |
|
Return the wrapper for output headers. Definition at line 350 of file HttpResponse.d. References HttpResponse::commited. |
|
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 366 of file HttpResponse.d. References HttpResponse::commit(). |
|
Write the response and the output headers Reimplemented from HttpMessage. Definition at line 393 of file HttpResponse.d. References HttpResponse::commit(). |
|
Ensure the output is flushed Definition at line 404 of file HttpResponse.d. References HttpResponse::commit(), IWriter::flush(), and version. Referenced by HttpResponse::sendError(), HttpResponse::sendRedirect(), and ServletProvider::service(). |