| java.lang.Object org.apache.catalina.connector.ResponseWrapper org.apache.catalina.connector.HttpResponseWrapper
HttpResponseWrapper | abstract public class HttpResponseWrapper extends ResponseWrapper implements HttpResponse(Code) | | Abstract convenience class that wraps a Catalina-internal HttpResponse
object. By default, all methods are delegated to the wrapped response,
but subclasses can override individual methods as required to provide the
functionality that they require.
author: Craig R. McClanahan version: $Revision: 1.4 $ $Date: 2002/03/18 07:15:39 $ |
Method Summary | |
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. |
HttpResponseWrapper | public HttpResponseWrapper(HttpResponse response)(Code) | | Construct a wrapper for the specified response.
Parameters: response - The response to be wrapped |
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 |
|
|