Method Summary |
|
public void | addCookie(Cookie cookie) Add the specified Cookie to those that will be included with
this Response. |
public void | addDateHeader(String name, long value) Add the specified date header to the specified value. |
public void | addHeader(String name, String value) Add the specified header to the specified value. |
public void | addIntHeader(String name, int value) Add the specified integer header to the specified value. |
public boolean | containsHeader(String name) |
public ServletOutputStream | createOutputStream() Create and return a ServletOutputStream to write the content
associated with this Response. |
public String | encodeRedirectURL(String url) Encode the session identifier associated with this response
into the specified redirect URL, if necessary. |
public String | encodeRedirectUrl(String url) Encode the session identifier associated with this response
into the specified redirect URL, if necessary. |
public String | encodeURL(String url) Encode the session identifier associated with this response
into the specified URL, if necessary. |
public String | encodeUrl(String url) Encode the session identifier associated with this response
into the specified URL, if necessary. |
public void | finishResponse() Perform whatever actions are required to flush and close the output
stream or writer, in a single operation. |
public void | flushBuffer() Flush the buffer and commit this response. |
public int | getBufferSize() Return the actual buffer size used for this Response. |
public String | getCharacterEncoding() Return the character encoding used for this Response. |
public Connector | getConnector() Return the Connector through which this Request was received. |
public int | getContentCount() Return the number of bytes actually written to the output stream. |
public int | getContentLength() Return the content length that was set or calculated for this Response. |
public String | getContentType() Return the content type that was set or calculated for this response,
or null if no content type was set. |
public Context | getContext() Return the Context within which this Request is being processed. |
public Cookie[] | getCookies() Return an array of all cookies set for this response, or
a zero-length array if no cookies have been set. |
public Response | getCoyoteResponse() Get the Coyote response. |
public String | getHeader(String name) Return the value for the specified header, or null if this
header has not been set. |
public String[] | getHeaderNames() Return an array of all the header names set for this response, or
a zero-length array if no headers have been set. |
public String[] | getHeaderValues(String name) Return an array of all the header values associated with the
specified header name, or an zero-length array if there are no such
header values. |
public boolean | getIncluded() Return the "processing inside an include" flag. |
public String | getInfo() Return descriptive information about this Response implementation and
the corresponding version number, in the format
<description>/<version> . |
public Locale | getLocale() Return the Locale assigned to this response. |
public String | getMessage() Return the error message that was set with sendError()
for this Response. |
public ServletOutputStream | getOutputStream() Return the servlet output stream associated with this Response. |
public PrintWriter | getReporter() Return a PrintWriter that can be used to render error messages,
regardless of whether a stream or writer has already been acquired.
Writer which can be used for error reports. |
public org.apache.catalina.Request | getRequest() Return the Request with which this Response is associated. |
public ServletResponse | getResponse() Return the ServletResponse for which this object
is the facade. |
public int | getStatus() Return the HTTP status code associated with this Response. |
public OutputStream | getStream() Return the output stream associated with this Response. |
public PrintWriter | getWriter() Return the writer associated with this Response. |
public boolean | isAppCommitted() Application commit flag accessor. |
public boolean | isCommitted() |
protected boolean | isEncodeable(String location) Return true if the specified URL should be encoded with
a session identifier. |
public boolean | isError() Error flag accessor. |
public boolean | isSuspended() Suspended flag accessor. |
public void | recycle() Release all object references, and initialize instance variables, in
preparation for reuse of this object. |
public void | reset() Clear any content written to the buffer. |
public void | reset(int status, String message) Reset this response, and specify the values for the HTTP status code
and corresponding message. |
public void | resetBuffer() Reset the data buffer but not any status or header information. |
public void | sendAcknowledgement() Send an acknowledgment of a request. |
public void | sendError(int status) Send an error response with the specified status and a
default message. |
public void | sendError(int status, String message) Send an error response with the specified status and message. |
public void | sendRedirect(String location) Send a temporary redirect to the specified redirect location URL. |
public void | setAppCommitted(boolean appCommitted) Set the application commit flag. |
public void | setBufferSize(int size) Set the buffer size to be used for this Response. |
public void | setCharacterEncoding(String charset) |
public void | setConnector(Connector connector) Set the Connector through which this Request was received. |
public void | setContentLength(int length) Set the content length (in bytes) for this Response. |
public void | setContentType(String type) Set the content type for this Response. |
public void | setContext(Context context) Set the Context within which this Request is being processed. |
public void | setCoyoteResponse(Response coyoteResponse) Set the Coyote response. |
public void | setDateHeader(String name, long value) Set the specified date header to the specified value. |
public void | setError() Set the error flag. |
public void | setHeader(String name, String value) Set the specified header to the specified value. |
public void | setIncluded(boolean included) Set the "processing inside an include" flag. |
public void | setIntHeader(String name, int value) Set the specified integer header to the specified value. |
public void | setLocale(Locale locale) Set the Locale that is appropriate for this response, including
setting the appropriate character encoding. |
public void | setRequest(org.apache.catalina.Request request) Set the Request with which this Response is associated. |
public void | setStatus(int status) Set the HTTP status to be returned with this response. |
public void | setStatus(int status, String message) Set the HTTP status and message to be returned with this response. |
public void | setStream(OutputStream stream) Set the output stream associated with this Response. |
public void | setSuspended(boolean suspended) Set the suspended flag. |