A general-purpose object for representing an HTTP
request.
authType
public MessageBytes authType()
Get the auth type
- the auth type
authorization
public MessageBytes authorization()
Get the authorization credentials
- the authorization credentials
contentType
public MessageBytes contentType()
Get the content type
- the content type
cookies
public Cookies cookies()
Get cookies.
- request cookies.
getAttribute
public Object getAttribute(String name)
Get an attribute on the request
name
- attribute name
- attribute value
getAttributeNames
public Iterator getAttributeNames()
Get iterator over attribute names
- iterator over attribute names
getContentLength
public int getContentLength()
Get the content length
- the content length
getNote
public final Object getNote(int id)
getScheme
public String getScheme()
Get the scheme
- the scheme
getSecure
public boolean getSecure()
Get whether the request is secure or not.
true
if the request is secure.
getServerPort
public int getServerPort()
Get the server port
- the server port
headers
public MimeHeaders headers()
Get this request's headers
- request headers
instanceId
public MessageBytes instanceId()
Get the host id ( or jvmRoute )
- the jvm route
method
public MessageBytes method()
Get the method.
- the method
protocol
public MessageBytes protocol()
Get the protocol
- the protocol
queryString
public MessageBytes queryString()
Get the query string
- the query string
recycle
public void recycle()
Recycles this object and readies it further use.
remoteAddr
public MessageBytes remoteAddr()
Get the remote address
- the remote address
remoteHost
public MessageBytes remoteHost()
Get the remote host
- the remote host
remoteUser
public MessageBytes remoteUser()
Get the remote user
- the remote user
requestURI
public MessageBytes requestURI()
Get the request uri
- the request uri
serverName
public MessageBytes serverName()
Get the server name
- the server name
setAttribute
public void setAttribute(String name,
Object value)
Set an attribute on the request
name
- attribute namevalue
- attribute value
setContentLength
public void setContentLength(int i)
Set the content length
i
- the content length
setNote
public final void setNote(int id,
Object cr)
setScheme
public void setScheme(String s)
Set the scheme.
s
- the scheme
setSecure
public void setSecure(boolean b)
Set whether the request is secure or not.
b
- true
if the request is secure.
setServerPort
public void setServerPort(int i)
Set the server port
i
- the server port
toString
public String toString()
** SLOW ** for debugging only!