org.apache.catalina.connector
クラス HttpResponseWrapper
java.lang.Object
|
+--org.apache.catalina.connector.ResponseWrapper
|
+--org.apache.catalina.connector.HttpResponseWrapper
- すべての実装インタフェース:
- HttpResponse, Response
- public abstract class HttpResponseWrapper
- extends ResponseWrapper
- implements HttpResponse
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.
- バージョン:
- $Revision: 1.3 $ $Date: 2001/07/22 20:25:06 $
- 作成者:
- Craig R. McClanahan
メソッドの概要 |
java.lang.String |
getHeader(java.lang.String name)
Return the value for the specified header, or null if this
header has not been set. |
java.lang.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. |
java.lang.String[] |
getHeaderValues(java.lang.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. |
java.lang.String |
getMessage()
Return the error message that was set with sendError()
for this response. |
int |
getStatus()
Return the HTTP status code associated with this Response. |
void |
reset(int status,
java.lang.String message)
Reset this response, and specify the values for the HTTP status code
and corresponding message. |
クラス 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 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース org.apache.catalina.Response から継承したメソッド |
createOutputStream, finishResponse, getConnector, getContentCount, getContentLength, getContentType, getContext, getIncluded, getInfo, getReporter, getRequest, getResponse, getStream, isAppCommitted, isError, isSuspended, recycle, resetBuffer, setAppCommitted, setConnector, setContext, setError, setIncluded, setRequest, setStream, setSuspended |
HttpResponseWrapper
public HttpResponseWrapper(HttpResponse response)
- Construct a wrapper for the specified response.
- パラメータ:
response
- The response to be wrapped
getHeader
public java.lang.String getHeader(java.lang.String name)
- 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.
- 定義:
- インタフェース
HttpResponse
内の getHeader
- パラメータ:
name
- Header name to look up
getHeaderNames
public java.lang.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.
- 定義:
- インタフェース
HttpResponse
内の getHeaderNames
getHeaderValues
public java.lang.String[] getHeaderValues(java.lang.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.
- 定義:
- インタフェース
HttpResponse
内の getHeaderValues
- パラメータ:
name
- Header name to look up
getMessage
public java.lang.String getMessage()
- Return the error message that was set with
sendError()
for this response.
- 定義:
- インタフェース
HttpResponse
内の getMessage
getStatus
public int getStatus()
- Return the HTTP status code associated with this Response.
- 定義:
- インタフェース
HttpResponse
内の getStatus
reset
public void reset(int status,
java.lang.String message)
- Reset this response, and specify the values for the HTTP status code
and corresponding message.
- 定義:
- インタフェース
HttpResponse
内の reset
- 例外:
java.lang.IllegalStateException
- if this response has already been
committed
Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.