|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
Field Summary | |
protected Request |
request
Deprecated. The wrapped request. |
Constructor Summary | |
RequestWrapper(Request request)
Deprecated. Construct a wrapper for the specified request. |
Method Summary | |
javax.servlet.ServletInputStream |
createInputStream()
Deprecated. Create and return a ServletInputStream to read the content associated with this Request. |
void |
finishRequest()
Deprecated. Perform whatever actions are required to flush and close the input stream or reader, in a single operation. |
java.lang.String |
getAuthorization()
Deprecated. Return the authorization credentials sent with this request. |
Connector |
getConnector()
Deprecated. Return the Connector through which this Request was received. |
Context |
getContext()
Deprecated. Return the Context within which this Request is being processed. |
java.lang.String |
getInfo()
Deprecated. Return descriptive information about this Request implementation and the corresponding version number, in the format <description>/<version> . |
javax.servlet.ServletRequest |
getRequest()
Deprecated. Return the ServletRequest for which this object
is the facade. |
Response |
getResponse()
Deprecated. Return the Response with which this Request is associated. |
java.net.Socket |
getSocket()
Deprecated. Return the Socket (if any) through which this Request was received. |
java.io.InputStream |
getStream()
Deprecated. Return the input stream associated with this Request. |
Request |
getWrappedRequest()
Deprecated. Return the wrapped request. |
Wrapper |
getWrapper()
Deprecated. Return the Wrapper within which this Request is being processed. |
void |
recycle()
Deprecated. Release all object references, and initialize instance variables, in preparation for reuse of this object. |
void |
setAuthorization(java.lang.String authorization)
Deprecated. Set the authorization credentials sent with this request. |
void |
setConnector(Connector connector)
Deprecated. Set the Connector through which this Request was received. |
void |
setContentLength(int length)
Deprecated. Set the content length associated with this Request. |
void |
setContentType(java.lang.String type)
Deprecated. Set the content type (and optionally the character encoding) associated with this Request. |
void |
setContext(Context context)
Deprecated. Set the Context within which this Request is being processed. |
void |
setProtocol(java.lang.String protocol)
Deprecated. Set the protocol name and version associated with this Request. |
void |
setRemoteAddr(java.lang.String remote)
Deprecated. Set the remote IP address associated with this Request. |
void |
setResponse(Response response)
Deprecated. Set the Response with which this Request is associated. |
void |
setScheme(java.lang.String scheme)
Deprecated. Set the name of the scheme associated with this request. |
void |
setSecure(boolean secure)
Deprecated. Set the value to be returned by isSecure()
for this Request. |
void |
setServerName(java.lang.String name)
Deprecated. Set the name of the server (virtual host) to process this request. |
void |
setServerPort(int port)
Deprecated. Set the port number of the server to process this request. |
void |
setSocket(java.net.Socket socket)
Deprecated. Set the Socket (if any) through which this Request was received. |
void |
setStream(java.io.InputStream stream)
Deprecated. Set the input stream associated with this Request. |
void |
setWrapper(Wrapper wrapper)
Deprecated. Set the Wrapper within which this Request is being processed. |
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.Request |
getNote, getNoteNames, removeNote, setNote |
Field Detail |
protected Request request
Constructor Detail |
public RequestWrapper(Request request)
request
- The request to be wrappedMethod Detail |
public Request getWrappedRequest()
public java.lang.String getAuthorization()
getAuthorization
in interface Request
public void setAuthorization(java.lang.String authorization)
setAuthorization
in interface Request
authorization
- The new authorization credentialspublic Connector getConnector()
getConnector
in interface Request
public void setConnector(Connector connector)
setConnector
in interface Request
connector
- The new connectorpublic Context getContext()
getContext
in interface Request
public void setContext(Context context)
getContextPath()
,
and thus enables parsing of the request URI.
setContext
in interface Request
context
- The newly associated Contextpublic java.lang.String getInfo()
<description>/<version>
.
getInfo
in interface Request
public javax.servlet.ServletRequest getRequest()
ServletRequest
for which this object
is the facade.
getRequest
in interface Request
public Response getResponse()
getResponse
in interface Request
public void setResponse(Response response)
setResponse
in interface Request
response
- The new associated responsepublic java.net.Socket getSocket()
getSocket
in interface Request
public void setSocket(java.net.Socket socket)
setSocket
in interface Request
socket
- The socket through which this request was receivedpublic java.io.InputStream getStream()
getStream
in interface Request
public void setStream(java.io.InputStream stream)
setStream
in interface Request
stream
- The new input streampublic Wrapper getWrapper()
getWrapper
in interface Request
public void setWrapper(Wrapper wrapper)
setWrapper
in interface Request
wrapper
- The newly associated Wrapperpublic javax.servlet.ServletInputStream createInputStream() throws java.io.IOException
createInputStream
in interface Request
java.io.IOException
- if an input/output error occurspublic void finishRequest() throws java.io.IOException
finishRequest
in interface Request
java.io.IOException
- if an input/output error occurspublic void recycle()
recycle
in interface Request
public void setContentLength(int length)
setContentLength
in interface Request
length
- The new content lengthpublic void setContentType(java.lang.String type)
text/html; charset=ISO-8859-4
.
setContentType
in interface Request
type
- The new content typepublic void setProtocol(java.lang.String protocol)
setProtocol
in interface Request
protocol
- Protocol name and versionpublic void setRemoteAddr(java.lang.String remote)
getRemoteHost()
if that method is called.
setRemoteAddr
in interface Request
remote
- The remote IP addresspublic void setScheme(java.lang.String scheme)
http
, https
, and ftp
.
setScheme
in interface Request
scheme
- The schemepublic void setSecure(boolean secure)
isSecure()
for this Request.
setSecure
in interface Request
secure
- The new isSecure valuepublic void setServerName(java.lang.String name)
setServerName
in interface Request
name
- The server namepublic void setServerPort(int port)
setServerPort
in interface Request
port
- The server port
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |