Method Summary |
|
public void | addCookie(Cookie cookie) Adds the specified cookie to the response. |
public boolean | containsHeader(String name) Returns true if the response message header has a field with
the specified name. |
public OutputOptions | createOutputOptions(XMLObject document) Create an OutputOptions object for a document. |
public String | encodeRedirectUrl(String url) Encodes a url with session id for sendRedirect for use with
cookieless browsers.
Parameters: url - the url to be encoded. |
public String | encodeUrl(String url) Encodes a url with session id for use with cookieless browsers.
Parameters: url - the url to be encoded. |
public void | flush() Called at the end of processing a response to force any cached
headers to be written and buffers flushed. |
public int | getContentLength() Returns the size of the request entity data, or -1 if not available. |
public String | getContentType() Returns the Internet Media Type of the response, or null if not known
This is necessary to support the DebugResponse interface. |
public Cookie[] | getCookies() Returns an array of cookies to be set by this response, or
a 0 length array if the information is not available. |
public String | getEncoding() Get the output character encoding. |
public String | getHeader(String name) Returns the values of the specified header for the response as
an array of strings, or a 0 length array if the named header does
not exist. |
public Enumeration | getHeaderNames() Returns an array of strings representing the header names
for this response. |
public HttpServletResponse | getHttpServletResponse() Returns the original HttpServletResponse. |
public HttpPresentationOutputStream | getOutputStream() Returns an output stream for writing response data. |
public ResponsePostProcessingManager | getPostProcessingManager() Returns the response post processing manager. |
public String | getResponseData() Returns null. |
public int | getStatusCode() Returns the status code for the response, or -1 if not available. |
public String | getStatusMessage() Returns the status message for the response, or null if not available. |
public int | getTotalBytes() Returns the total number of bytes that make up this response. |
public boolean | isSessionIdCookieRequired() |
public boolean | isSessionIdEncodeUrlRequired() |
public void | sendError(int sc, String msg) Sends an error response to the client using the specified status
code and descriptive message. |
public void | sendError(int sc) Sends an error response to the client using the specified
status code and a default message. |
public void | setContentLength(int len) Sets the content length for this response. |
public void | setContentType(String type) Sets the content type for this response. |
public void | setDateHeader(String name, long date) Adds a field to the response header with a given name and
date-valued field. |
public void | setEncoding(String enc) Set the output character encoding. |
public void | setHeader(String name, String value) Adds a field to the response header with a given name and
value. |
public void | setIntHeader(String name, int value) Adds a field to the response header with a given name and
integer value. |
public void | setPostProcessingManager(ResponsePostProcessingManager processingManager) Sets the response post processing manager. |
public void | setSessionIdCookieRequired(boolean sessionIdCookie) |
public void | setSessionIdEncodeUrlRequired(boolean sessionIdUrl) |
public void | setSessionKey(String sessionKey) |
public void | setSessionManager(SessionManager sessionManager) Sets the session manager. |
public void | setStatus(int sc, String sm) Sets the status code and message for this response. |
public void | setStatus(int sc) Sets the status code and a default message for this response. |
public void | writeDOM(OutputOptions outputOptions, Node document) Output an an XMLC document object (DOM). |
public void | writeDOM(Node document) Output an an XMLC document object (DOM). |
public void | writeHTML(String html) Utility method to output an HTML page. |
public void | writeHTML(HTMLDocument doc) Utility method to output an HTML page from a DOM object. |