|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.catalina.connector.RequestWrapper
Abstract convenience class that wraps a Catalina-internal Request object. By default, all methods are delegated to the wrapped request, but subclasses can override individual methods as required to provide the functionality that they require.
フィールドの概要 | |
protected Request |
request
The wrapped request. |
コンストラクタの概要 | |
RequestWrapper(Request request)
Construct a wrapper for the specified request. |
メソッドの概要 | |
javax.servlet.ServletInputStream |
createInputStream()
Create and return a ServletInputStream to read the content associated with this Request. |
void |
finishRequest()
Perform whatever actions are required to flush and close the input stream or reader, in a single operation. |
java.lang.String |
getAuthorization()
Return the authorization credentials sent with this request. |
Connector |
getConnector()
Return the Connector through which this Request was received. |
Context |
getContext()
Return the Context within which this Request is being processed. |
java.lang.String |
getInfo()
Return descriptive information about this Request implementation and the corresponding version number, in the format <description>/<version> . |
javax.servlet.ServletRequest |
getRequest()
Return the ServletRequest for which this object
is the facade. |
Response |
getResponse()
Return the Response with which this Request is associated. |
java.net.Socket |
getSocket()
Return the Socket (if any) through which this Request was received. |
java.io.InputStream |
getStream()
Return the input stream associated with this Request. |
Request |
getWrappedRequest()
Return the wrapped request. |
Wrapper |
getWrapper()
Return the Wrapper within which this Request is being processed. |
void |
recycle()
Release all object references, and initialize instance variables, in preparation for reuse of this object. |
void |
setAuthorization(java.lang.String authorization)
Set the authorization credentials sent with this request. |
void |
setConnector(Connector connector)
Set the Connector through which this Request was received. |
void |
setContentLength(int length)
Set the content length associated with this Request. |
void |
setContentType(java.lang.String type)
Set the content type (and optionally the character encoding) associated with this Request. |
void |
setContext(Context context)
Set the Context within which this Request is being processed. |
void |
setProtocol(java.lang.String protocol)
Set the protocol name and version associated with this Request. |
void |
setRemoteAddr(java.lang.String remote)
Set the remote IP address associated with this Request. |
void |
setResponse(Response response)
Set the Response with which this Request is associated. |
void |
setScheme(java.lang.String scheme)
Set the name of the scheme associated with this request. |
void |
setSecure(boolean secure)
Set the value to be returned by isSecure()
for this Request. |
void |
setServerName(java.lang.String name)
Set the name of the server (virtual host) to process this request. |
void |
setServerPort(int port)
Set the port number of the server to process this request. |
void |
setSocket(java.net.Socket socket)
Set the Socket (if any) through which this Request was received. |
void |
setStream(java.io.InputStream stream)
Set the input stream associated with this Request. |
void |
setWrapper(Wrapper wrapper)
Set the Wrapper within which this Request is being processed. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース org.apache.catalina.Request から継承したメソッド |
getNote, getNoteNames, removeNote, setNote |
フィールドの詳細 |
protected Request request
コンストラクタの詳細 |
public RequestWrapper(Request request)
request
- The request to be wrappedメソッドの詳細 |
public Request getWrappedRequest()
public java.lang.String getAuthorization()
Request
内の getAuthorization
public void setAuthorization(java.lang.String authorization)
Request
内の setAuthorization
authorization
- The new authorization credentialspublic Connector getConnector()
Request
内の getConnector
public void setConnector(Connector connector)
Request
内の setConnector
connector
- The new connectorpublic Context getContext()
Request
内の getContext
public void setContext(Context context)
getContextPath()
,
and thus enables parsing of the request URI.Request
内の setContext
context
- The newly associated Contextpublic java.lang.String getInfo()
<description>/<version>
.Request
内の getInfo
public javax.servlet.ServletRequest getRequest()
ServletRequest
for which this object
is the facade.Request
内の getRequest
public Response getResponse()
Request
内の getResponse
public void setResponse(Response response)
Request
内の setResponse
response
- The new associated responsepublic java.net.Socket getSocket()
Request
内の getSocket
public void setSocket(java.net.Socket socket)
Request
内の setSocket
socket
- The socket through which this request was receivedpublic java.io.InputStream getStream()
Request
内の getStream
public void setStream(java.io.InputStream stream)
Request
内の setStream
stream
- The new input streampublic Wrapper getWrapper()
Request
内の getWrapper
public void setWrapper(Wrapper wrapper)
Request
内の setWrapper
wrapper
- The newly associated Wrapperpublic javax.servlet.ServletInputStream createInputStream() throws java.io.IOException
Request
内の createInputStream
java.io.IOException
- if an input/output error occurspublic void finishRequest() throws java.io.IOException
Request
内の finishRequest
java.io.IOException
- if an input/output error occurspublic void recycle()
Request
内の recycle
public void setContentLength(int length)
Request
内の setContentLength
length
- The new content lengthpublic void setContentType(java.lang.String type)
text/html; charset=ISO-8859-4
.Request
内の setContentType
type
- The new content typepublic void setProtocol(java.lang.String protocol)
Request
内の setProtocol
protocol
- Protocol name and versionpublic void setRemoteAddr(java.lang.String remote)
getRemoteHost()
if that method is called.Request
内の setRemoteAddr
remote
- The remote IP addresspublic void setScheme(java.lang.String scheme)
http
, https
, and ftp
.Request
内の setScheme
scheme
- The schemepublic void setSecure(boolean secure)
isSecure()
for this Request.Request
内の setSecure
secure
- The new isSecure valuepublic void setServerName(java.lang.String name)
Request
内の setServerName
name
- The server namepublic void setServerPort(int port)
Request
内の setServerPort
port
- The server port
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |