|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.coyote.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:
Field Summary | |
private java.util.Hashtable |
attributes
|
private org.apache.tomcat.util.buf.MessageBytes |
authType
|
private int |
available
|
private int |
bytesRead
|
private java.lang.String |
charEncoding
|
private int |
contentLength
HTTP specific fields. |
private org.apache.tomcat.util.buf.MessageBytes |
contentTypeMB
|
private org.apache.tomcat.util.http.Cookies |
cookies
|
private org.apache.tomcat.util.buf.MessageBytes |
decodedUriMB
|
private org.apache.tomcat.util.http.MimeHeaders |
headers
|
private ActionHook |
hook
|
private InputBuffer |
inputBuffer
Associated input buffer. |
private org.apache.tomcat.util.buf.MessageBytes |
instanceId
|
private java.lang.String |
localHost
|
private org.apache.tomcat.util.buf.MessageBytes |
methodMB
|
private java.lang.Object[] |
notes
Notes. |
private org.apache.tomcat.util.http.Parameters |
parameters
|
private org.apache.tomcat.util.buf.MessageBytes |
protoMB
|
private org.apache.tomcat.util.buf.MessageBytes |
queryMB
|
private org.apache.tomcat.util.buf.MessageBytes |
remoteAddrMB
|
private org.apache.tomcat.util.buf.MessageBytes |
remoteHostMB
|
private org.apache.tomcat.util.buf.MessageBytes |
remoteUser
|
private RequestInfo |
reqProcessorMX
|
private Response |
response
|
private org.apache.tomcat.util.buf.MessageBytes |
schemeMB
|
private org.apache.tomcat.util.buf.MessageBytes |
serverNameMB
|
private int |
serverPort
|
private long |
startTime
|
private org.apache.tomcat.util.buf.MessageBytes |
unparsedURIMB
|
private org.apache.tomcat.util.buf.MessageBytes |
uriMB
|
private org.apache.tomcat.util.buf.UDecoder |
urlDecoder
URL decoder. |
Constructor Summary | |
Request()
|
Method Summary | |
void |
action(ActionCode actionCode,
java.lang.Object param)
|
org.apache.tomcat.util.buf.MessageBytes |
contentType()
|
org.apache.tomcat.util.buf.MessageBytes |
decodedURI()
|
int |
doRead(org.apache.tomcat.util.buf.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.Hashtable |
getAttributes()
|
org.apache.tomcat.util.buf.MessageBytes |
getAuthType()
|
int |
getBytesRead()
|
java.lang.String |
getCharacterEncoding()
Get the character encoding used for this request. |
int |
getContentLength()
|
java.lang.String |
getContentType()
|
org.apache.tomcat.util.http.Cookies |
getCookies()
|
java.lang.String |
getHeader(java.lang.String name)
|
InputBuffer |
getInputBuffer()
|
java.lang.String |
getLocalHost()
|
org.apache.tomcat.util.http.MimeHeaders |
getMimeHeaders()
|
java.lang.Object |
getNote(int pos)
|
org.apache.tomcat.util.http.Parameters |
getParameters()
|
org.apache.tomcat.util.buf.MessageBytes |
getRemoteUser()
|
RequestInfo |
getRequestProcessor()
|
Response |
getResponse()
|
int |
getServerPort()
|
long |
getStartTime()
|
org.apache.tomcat.util.buf.UDecoder |
getURLDecoder()
|
org.apache.tomcat.util.buf.MessageBytes |
instanceId()
Get the instance id (or JVM route). |
org.apache.tomcat.util.buf.MessageBytes |
method()
|
org.apache.tomcat.util.buf.MessageBytes |
protocol()
|
org.apache.tomcat.util.buf.MessageBytes |
query()
|
org.apache.tomcat.util.buf.MessageBytes |
queryString()
|
void |
recycle()
|
org.apache.tomcat.util.buf.MessageBytes |
remoteAddr()
|
org.apache.tomcat.util.buf.MessageBytes |
remoteHost()
|
org.apache.tomcat.util.buf.MessageBytes |
requestURI()
|
org.apache.tomcat.util.buf.MessageBytes |
scheme()
|
org.apache.tomcat.util.buf.MessageBytes |
serverName()
Return the buffer holding the server name, if any. |
void |
setAttribute(java.lang.String name,
java.lang.Object o)
|
void |
setBytesRead(int bytesRead)
|
void |
setCharacterEncoding(java.lang.String enc)
|
void |
setContentLength(int len)
|
void |
setContentType(org.apache.tomcat.util.buf.MessageBytes mb)
|
void |
setContentType(java.lang.String type)
|
void |
setInputBuffer(InputBuffer inputBuffer)
|
void |
setLocalHost(java.lang.String host)
|
void |
setNote(int pos,
java.lang.Object value)
|
void |
setResponse(Response response)
|
void |
setServerPort(int serverPort)
|
void |
setStartTime(long startTime)
|
java.lang.String |
toString()
|
org.apache.tomcat.util.buf.MessageBytes |
unparsedURI()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int serverPort
private org.apache.tomcat.util.buf.MessageBytes serverNameMB
private java.lang.String localHost
private org.apache.tomcat.util.buf.MessageBytes schemeMB
private org.apache.tomcat.util.buf.MessageBytes methodMB
private org.apache.tomcat.util.buf.MessageBytes unparsedURIMB
private org.apache.tomcat.util.buf.MessageBytes uriMB
private org.apache.tomcat.util.buf.MessageBytes decodedUriMB
private org.apache.tomcat.util.buf.MessageBytes queryMB
private org.apache.tomcat.util.buf.MessageBytes protoMB
private org.apache.tomcat.util.buf.MessageBytes remoteAddrMB
private org.apache.tomcat.util.buf.MessageBytes remoteHostMB
private org.apache.tomcat.util.http.MimeHeaders headers
private org.apache.tomcat.util.buf.MessageBytes instanceId
private java.lang.Object[] notes
private InputBuffer inputBuffer
private org.apache.tomcat.util.buf.UDecoder urlDecoder
private int contentLength
private int available
private org.apache.tomcat.util.buf.MessageBytes contentTypeMB
private java.lang.String charEncoding
private org.apache.tomcat.util.http.Cookies cookies
private org.apache.tomcat.util.http.Parameters parameters
private org.apache.tomcat.util.buf.MessageBytes remoteUser
private org.apache.tomcat.util.buf.MessageBytes authType
private java.util.Hashtable attributes
private Response response
private ActionHook hook
private int bytesRead
private long startTime
private RequestInfo reqProcessorMX
Constructor Detail |
public Request()
Method Detail |
public org.apache.tomcat.util.buf.MessageBytes instanceId()
public org.apache.tomcat.util.http.MimeHeaders getMimeHeaders()
public org.apache.tomcat.util.buf.UDecoder getURLDecoder()
public org.apache.tomcat.util.buf.MessageBytes scheme()
public org.apache.tomcat.util.buf.MessageBytes method()
public org.apache.tomcat.util.buf.MessageBytes unparsedURI()
public org.apache.tomcat.util.buf.MessageBytes requestURI()
public org.apache.tomcat.util.buf.MessageBytes decodedURI()
public org.apache.tomcat.util.buf.MessageBytes query()
public org.apache.tomcat.util.buf.MessageBytes queryString()
public org.apache.tomcat.util.buf.MessageBytes protocol()
public org.apache.tomcat.util.buf.MessageBytes serverName()
public int getServerPort()
public void setServerPort(int serverPort)
public org.apache.tomcat.util.buf.MessageBytes remoteAddr()
public org.apache.tomcat.util.buf.MessageBytes remoteHost()
public java.lang.String getLocalHost()
public void setLocalHost(java.lang.String host)
public java.lang.String getCharacterEncoding()
public void setCharacterEncoding(java.lang.String enc)
public void setContentLength(int len)
public int getContentLength()
public java.lang.String getContentType()
public void setContentType(java.lang.String type)
public org.apache.tomcat.util.buf.MessageBytes contentType()
public void setContentType(org.apache.tomcat.util.buf.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 org.apache.tomcat.util.http.Cookies getCookies()
public org.apache.tomcat.util.http.Parameters getParameters()
public void setAttribute(java.lang.String name, java.lang.Object o)
public java.util.Hashtable getAttributes()
public java.lang.Object getAttribute(java.lang.String name)
public org.apache.tomcat.util.buf.MessageBytes getRemoteUser()
public org.apache.tomcat.util.buf.MessageBytes getAuthType()
public InputBuffer getInputBuffer()
public void setInputBuffer(InputBuffer inputBuffer)
public int doRead(org.apache.tomcat.util.buf.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 RequestInfo getRequestProcessor()
public int getBytesRead()
public void setBytesRead(int bytesRead)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |