|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.Request
public final class Request
This is a low-level, efficient representation of a server request. Most fields are GC-free, expensive operations are delayed until the user code needs the information. Processing is delegated to modules, using a hook mechanism. This class is not intended for user code - it is used internally by tomcat for processing the request in the most efficient way. Users ( servlets ) can access the information using a facade, which provides the high-level view of the request. For lazy evaluation, the request uses the getInfo() hook. The following ids are defined:
Constructor Summary | |
---|---|
Request()
|
Method Summary | |
---|---|
void |
action(ActionCode actionCode,
java.lang.Object param)
|
MessageBytes |
contentType()
|
MessageBytes |
decodedURI()
|
int |
doRead(ByteChunk chunk)
Read data from the input buffer and put it into a byte chunk. |
java.lang.Object |
getAttribute(java.lang.String name)
|
java.util.HashMap |
getAttributes()
|
MessageBytes |
getAuthType()
|
int |
getAvailable()
|
long |
getBytesRead()
|
java.lang.String |
getCharacterEncoding()
Get the character encoding used for this request. |
int |
getContentLength()
|
long |
getContentLengthLong()
|
java.lang.String |
getContentType()
|
Cookies |
getCookies()
|
java.lang.String |
getHeader(java.lang.String name)
|
InputBuffer |
getInputBuffer()
|
int |
getLocalPort()
|
MimeHeaders |
getMimeHeaders()
|
java.lang.Object |
getNote(int pos)
|
Parameters |
getParameters()
|
int |
getRemotePort()
|
MessageBytes |
getRemoteUser()
|
RequestInfo |
getRequestProcessor()
|
Response |
getResponse()
|
int |
getServerPort()
|
long |
getStartTime()
|
UDecoder |
getURLDecoder()
|
MessageBytes |
instanceId()
Get the instance id (or JVM route). |
MessageBytes |
localAddr()
|
MessageBytes |
localName()
|
MessageBytes |
method()
|
MessageBytes |
protocol()
|
MessageBytes |
query()
|
MessageBytes |
queryString()
|
void |
recycle()
|
MessageBytes |
remoteAddr()
|
MessageBytes |
remoteHost()
|
MessageBytes |
requestURI()
|
MessageBytes |
scheme()
|
MessageBytes |
serverName()
Return the buffer holding the server name, if any. |
void |
setAttribute(java.lang.String name,
java.lang.Object o)
|
void |
setAvailable(int available)
|
void |
setBytesRead(long bytesRead)
|
void |
setCharacterEncoding(java.lang.String enc)
|
void |
setContentLength(int len)
|
void |
setContentType(MessageBytes mb)
|
void |
setContentType(java.lang.String type)
|
void |
setInputBuffer(InputBuffer inputBuffer)
|
void |
setLocalPort(int port)
|
void |
setNote(int pos,
java.lang.Object value)
Used to store private data. |
void |
setRemotePort(int port)
|
void |
setResponse(Response response)
|
void |
setServerPort(int serverPort)
|
void |
setStartTime(long startTime)
|
java.lang.String |
toString()
|
MessageBytes |
unparsedURI()
|
void |
updateCounters()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Request()
Method Detail |
---|
public MessageBytes instanceId()
public MimeHeaders getMimeHeaders()
public UDecoder getURLDecoder()
public MessageBytes scheme()
public MessageBytes method()
public MessageBytes unparsedURI()
public MessageBytes requestURI()
public MessageBytes decodedURI()
public MessageBytes query()
public MessageBytes queryString()
public MessageBytes protocol()
public MessageBytes serverName()
public int getServerPort()
public void setServerPort(int serverPort)
public MessageBytes remoteAddr()
public MessageBytes remoteHost()
public MessageBytes localName()
public MessageBytes localAddr()
public int getRemotePort()
public void setRemotePort(int port)
public int getLocalPort()
public void setLocalPort(int port)
public java.lang.String getCharacterEncoding()
public void setCharacterEncoding(java.lang.String enc)
public void setContentLength(int len)
public int getContentLength()
public long getContentLengthLong()
public java.lang.String getContentType()
public void setContentType(java.lang.String type)
public MessageBytes contentType()
public void setContentType(MessageBytes mb)
public java.lang.String getHeader(java.lang.String name)
public Response getResponse()
public void setResponse(Response response)
public void action(ActionCode actionCode, java.lang.Object param)
public Cookies getCookies()
public Parameters getParameters()
public void setAttribute(java.lang.String name, java.lang.Object o)
public java.util.HashMap getAttributes()
public java.lang.Object getAttribute(java.lang.String name)
public MessageBytes getRemoteUser()
public MessageBytes getAuthType()
public int getAvailable()
public void setAvailable(int available)
public InputBuffer getInputBuffer()
public void setInputBuffer(InputBuffer inputBuffer)
public int doRead(ByteChunk chunk) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public long getStartTime()
public void setStartTime(long startTime)
public final void setNote(int pos, java.lang.Object value)
public final java.lang.Object getNote(int pos)
public void recycle()
public void updateCounters()
public RequestInfo getRequestProcessor()
public long getBytesRead()
public void setBytesRead(long bytesRead)
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |