| org.apache.catalina.HttpResponse
All known Subclasses: org.apache.catalina.connector.HttpResponseBase, org.apache.catalina.connector.HttpResponseWrapper,
HttpResponse | public interface HttpResponse extends Response(Code) | | An HttpResponse is the Catalina-internal facade for an
HttpServletResponse that is to be produced,
based on the processing of a corresponding HttpRequest .
author: Craig R. McClanahan version: $Revision: 1.5 $ $Date: 2001/07/22 20:13:30 $ |
Method Summary | |
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 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 String | getMessage() Return the error message that was set with sendError()
for this Response. | public int | getStatus() Return the HTTP status code associated with this Response. | public void | reset(int status, String message) Reset this response, and specify the values for the HTTP status code
and corresponding message. |
getCookies | public Cookie[] getCookies()(Code) | | Return an array of all cookies set for this response, or
a zero-length array if no cookies have been set.
|
getHeader | public String getHeader(String name)(Code) | | Return the value for the specified header, or null if this
header has not been set. If more than one value was added for this
name, only the first is returned; use getHeaderValues() to retrieve all
of them.
Parameters: name - Header name to look up |
getHeaderNames | public String[] getHeaderNames()(Code) | | Return an array of all the header names set for this response, or
a zero-length array if no headers have been set.
|
getHeaderValues | public String[] getHeaderValues(String name)(Code) | | 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.
Parameters: name - Header name to look up |
getMessage | public String getMessage()(Code) | | Return the error message that was set with sendError()
for this Response.
|
getStatus | public int getStatus()(Code) | | Return the HTTP status code associated with this Response.
|
reset | public void reset(int status, String message)(Code) | | Reset this response, and specify the values for the HTTP status code
and corresponding message.
exception: IllegalStateException - if this response has already beencommitted |
|
|