| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tomcat.util.http.BaseRequest
A general-purpose object for representing an HTTP request.
| Field Summary | |
static java.lang.String | 
SCHEME_HTTP
 | 
static java.lang.String | 
SCHEME_HTTPS
 | 
| Constructor Summary | |
BaseRequest()
 | 
|
| Method Summary | |
 MessageBytes | 
authorization()
Get the authorization credentials  | 
 MessageBytes | 
authType()
Get the auth type  | 
 MessageBytes | 
contentType()
Get the content type  | 
 Cookies | 
cookies()
Get cookies.  | 
 java.lang.Object | 
getAttribute(java.lang.String name)
Get an attribute on the request  | 
 java.util.Iterator | 
getAttributeNames()
Get iterator over attribute names  | 
 int | 
getContentLength()
Get the content length  | 
 java.lang.Object | 
getNote(int id)
 | 
 java.lang.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(java.lang.String name,
             java.lang.Object value)
Set an attribute on the request  | 
 void | 
setContentLength(int i)
Set the content length  | 
 void | 
setNote(int id,
        java.lang.Object cr)
 | 
 void | 
setScheme(java.lang.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  | 
 java.lang.String | 
toString()
** SLOW ** for debugging only!  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String SCHEME_HTTP
public static final java.lang.String SCHEME_HTTPS
| Constructor Detail | 
public BaseRequest()
| Method Detail | 
public void recycle()
public MessageBytes method()
public MessageBytes protocol()
public MessageBytes requestURI()
public MessageBytes remoteAddr()
public MessageBytes remoteHost()
public MessageBytes serverName()
public int getServerPort()
public void setServerPort(int i)
i - the server portpublic MessageBytes remoteUser()
public MessageBytes authType()
public MessageBytes queryString()
public MessageBytes authorization()
public java.lang.String getScheme()
public void setScheme(java.lang.String s)
s - the schemepublic boolean getSecure()
true if the request is secure.public void setSecure(boolean b)
b - true if the request is secure.public int getContentLength()
public void setContentLength(int i)
i - the content lengthpublic MessageBytes contentType()
public MimeHeaders headers()
public Cookies cookies()
public void setAttribute(java.lang.String name,
                         java.lang.Object value)
name - attribute namevalue - attribute valuepublic java.lang.Object getAttribute(java.lang.String name)
name - attribute name
public java.util.Iterator getAttributeNames()
public MessageBytes instanceId()
public MessageBytes jvmRoute()
public final java.lang.Object getNote(int id)
public final void setNote(int id,
                          java.lang.Object cr)
public java.lang.String toString()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||