public final class Request
extends java.lang.Object
Constructor and Description |
---|
Request() |
Modifier and Type | Method and Description |
---|---|
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<java.lang.String,java.lang.Object> |
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() |
ServerCookies |
getCookies() |
java.lang.String |
getHeader(java.lang.String name) |
InputBuffer |
getInputBuffer() |
int |
getLocalPort() |
MimeHeaders |
getMimeHeaders() |
java.lang.Object |
getNote(int pos) |
Parameters |
getParameters() |
ReadListener |
getReadListener() |
int |
getRemotePort() |
MessageBytes |
getRemoteUser() |
boolean |
getRemoteUserNeedsAuthorization() |
RequestInfo |
getRequestProcessor() |
Response |
getResponse() |
int |
getServerPort() |
long |
getStartTime() |
boolean |
getSupportsRelativeRedirects() |
UDecoder |
getURLDecoder() |
MessageBytes |
instanceId()
Get the instance id (or JVM route).
|
boolean |
isFinished() |
boolean |
isProcessing() |
MessageBytes |
localAddr() |
MessageBytes |
localName() |
MessageBytes |
method() |
MessageBytes |
protocol() |
MessageBytes |
queryString() |
void |
recycle() |
MessageBytes |
remoteAddr() |
MessageBytes |
remoteHost() |
MessageBytes |
requestURI() |
MessageBytes |
scheme() |
boolean |
sendAllDataReadEvent() |
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 |
setCharacterEncoding(java.lang.String enc) |
void |
setContentLength(long len) |
void |
setContentType(MessageBytes mb) |
void |
setContentType(java.lang.String type) |
protected void |
setHook(ActionHook hook) |
void |
setInputBuffer(InputBuffer inputBuffer) |
void |
setLocalPort(int port) |
void |
setNote(int pos,
java.lang.Object value)
Used to store private data.
|
void |
setReadListener(ReadListener listener) |
void |
setRemotePort(int port) |
void |
setRemoteUserNeedsAuthorization(boolean remoteUserNeedsAuthorization) |
void |
setResponse(Response response) |
void |
setServerPort(int serverPort) |
void |
setStartTime(long startTime) |
java.lang.String |
toString() |
void |
updateCounters() |
public ReadListener getReadListener()
public void setReadListener(ReadListener listener)
public boolean sendAllDataReadEvent()
public MessageBytes instanceId()
public MimeHeaders getMimeHeaders()
public UDecoder getURLDecoder()
public MessageBytes scheme()
public MessageBytes method()
public MessageBytes requestURI()
public MessageBytes decodedURI()
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(long 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)
protected void setHook(ActionHook hook)
public void action(ActionCode actionCode, java.lang.Object param)
public ServerCookies getCookies()
public Parameters getParameters()
public void setAttribute(java.lang.String name, java.lang.Object o)
public java.util.HashMap<java.lang.String,java.lang.Object> getAttributes()
public java.lang.Object getAttribute(java.lang.String name)
public MessageBytes getRemoteUser()
public boolean getRemoteUserNeedsAuthorization()
public void setRemoteUserNeedsAuthorization(boolean remoteUserNeedsAuthorization)
public MessageBytes getAuthType()
public int getAvailable()
public void setAvailable(int available)
public boolean isFinished()
public boolean getSupportsRelativeRedirects()
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 boolean isProcessing()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.