|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.connector.ResponseWrapper
org.apache.catalina.connector.HttpResponseWrapper
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.
Field Summary |
Fields inherited from class org.apache.catalina.connector.ResponseWrapper |
response |
Constructor Summary | |
HttpResponseWrapper(HttpResponse response)
Deprecated. Construct a wrapper for the specified response. |
Method Summary | |
java.lang.String |
getHeader(java.lang.String name)
Deprecated. Return the value for the specified header, or null if this
header has not been set. |
java.lang.String[] |
getHeaderNames()
Deprecated. Return an array of all the header names set for this response, or a zero-length array if no headers have been set. |
java.lang.String[] |
getHeaderValues(java.lang.String name)
Deprecated. 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. |
java.lang.String |
getMessage()
Deprecated. Return the error message that was set with sendError()
for this response. |
int |
getStatus()
Deprecated. Return the HTTP status code associated with this Response. |
void |
reset(int status,
java.lang.String message)
Deprecated. Reset this response, and specify the values for the HTTP status code and corresponding message. |
Methods inherited from class org.apache.catalina.connector.ResponseWrapper |
createOutputStream, finishResponse, getConnector, getContentCount, getContentLength, getContentType, getContext, getIncluded, getInfo, getReporter, getRequest, getResponse, getStream, getWrappedResponse, recycle, resetBuffer, setConnector, setContext, setIncluded, setRequest, setStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.catalina.HttpResponse |
getCookies |
Methods inherited from interface org.apache.catalina.Response |
createOutputStream, finishResponse, getConnector, getContentCount, getContentLength, getContentType, getContext, getIncluded, getInfo, getReporter, getRequest, getResponse, getStream, isAppCommitted, isError, isSuspended, recycle, resetBuffer, sendAcknowledgement, setAppCommitted, setConnector, setContext, setError, setIncluded, setRequest, setStream, setSuspended |
Constructor Detail |
public HttpResponseWrapper(HttpResponse response)
response
- The response to be wrappedMethod Detail |
public java.lang.String getHeader(java.lang.String name)
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.
getHeader
in interface HttpResponse
name
- Header name to look uppublic java.lang.String[] getHeaderNames()
getHeaderNames
in interface HttpResponse
public java.lang.String[] getHeaderValues(java.lang.String name)
getHeaderValues
in interface HttpResponse
name
- Header name to look uppublic java.lang.String getMessage()
sendError()
for this response.
getMessage
in interface HttpResponse
public int getStatus()
getStatus
in interface HttpResponse
public void reset(int status, java.lang.String message)
reset
in interface HttpResponse
java.lang.IllegalStateException
- if this response has already been
committed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |