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