|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.tcp.Request
public 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:
Field Summary | |
---|---|
protected long |
contentLength
HTTP specific fields. |
Constructor Summary | |
---|---|
Request()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long contentLength
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 String getLocalHost()
public void setLocalHost(String host)
public InetAddress getLocalAddress()
public void setLocalAddress(InetAddress localAddress)
public int getRemotePort()
public void setRemotePort(int port)
public int getLocalPort()
public void setLocalPort(int port)
public String getCharacterEncoding()
public void setCharacterEncoding(String enc)
public void setContentLength(int len)
public int getContentLength()
public long getContentLengthLong()
public String getContentType()
public void setContentType(String type)
public MessageBytes contentType()
public void setContentType(MessageBytes mb)
public String getHeader(String name)
public Response getResponse()
public void setResponse(Response response)
public void action(ActionCode actionCode, Object param)
public Cookies getCookies()
public Parameters getParameters()
public void setAttribute(String name, Object o)
public Map getAttributes()
public Object getAttribute(String name)
public MessageBytes getRemoteUser()
public MessageBytes getAuthType()
public InputBuffer getInputBuffer()
public void setInputBuffer(InputBuffer inputBuffer)
public int doRead(ByteChunk chunk) throws IOException
IOException
public String toString()
toString
in class Object
public long getStartTime()
public void setStartTime(long startTime)
public final void setNote(int pos, Object value)
public final Object getNote(int pos)
public NotesManagerImpl getNotesManager()
public void setNotesManager(NotesManagerImpl notesManager)
public void recycle()
public void updateCounters()
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 |