Fields Summary |
---|
public static final String | SCHEME_HTTP |
public static final String | SCHEME_HTTPS |
org.apache.tomcat.util.buf.MessageBytes | method |
org.apache.tomcat.util.buf.MessageBytes | protocol |
org.apache.tomcat.util.buf.MessageBytes | requestURI |
org.apache.tomcat.util.buf.MessageBytes | remoteAddr |
org.apache.tomcat.util.buf.MessageBytes | remoteHost |
org.apache.tomcat.util.buf.MessageBytes | serverName |
int | serverPort |
org.apache.tomcat.util.buf.MessageBytes | remoteUser |
org.apache.tomcat.util.buf.MessageBytes | authType |
org.apache.tomcat.util.buf.MessageBytes | queryString |
org.apache.tomcat.util.buf.MessageBytes | authorization |
String | scheme |
boolean | secure |
int | contentLength |
org.apache.tomcat.util.buf.MessageBytes | contentType |
MimeHeaders | headers |
Cookies | cookies |
HashMap | attributes |
org.apache.tomcat.util.buf.MessageBytes | tomcatInstanceId |
private Object[] | notes |
Methods Summary |
---|
public org.apache.tomcat.util.buf.MessageBytes | authType()Get the auth type
return authType;
|
public org.apache.tomcat.util.buf.MessageBytes | authorization()Get the authorization credentials
return authorization;
|
public org.apache.tomcat.util.buf.MessageBytes | contentType()Get the content type
return contentType;
|
public Cookies | cookies()Get cookies.
return cookies;
|
public java.lang.Object | getAttribute(java.lang.String name)Get an attribute on the request
if (name == null) {
return null;
}
return attributes.get(name);
|
public java.util.Iterator | getAttributeNames()Get iterator over attribute names
return attributes.keySet().iterator();
|
public int | getContentLength()Get the content length
return contentLength;
|
public final java.lang.Object | getNote(int id)
return notes[id];
|
public java.lang.String | getScheme()Get the scheme
return scheme;
|
public boolean | getSecure()Get whether the request is secure or not.
return secure;
|
public int | getServerPort()Get the server port
return serverPort;
|
public MimeHeaders | headers()Get this request's headers
return headers;
|
public org.apache.tomcat.util.buf.MessageBytes | instanceId()Get the host id ( or jvmRoute )
return tomcatInstanceId;
|
public org.apache.tomcat.util.buf.MessageBytes | jvmRoute()
return tomcatInstanceId;
|
public org.apache.tomcat.util.buf.MessageBytes | method()Get the method.
return method;
|
public org.apache.tomcat.util.buf.MessageBytes | protocol()Get the protocol
return protocol;
|
public org.apache.tomcat.util.buf.MessageBytes | queryString()Get the query string
return queryString;
|
public void | recycle()Recycles this object and readies it further use.
method.recycle();
protocol.recycle();
requestURI.recycle();
remoteAddr.recycle();
remoteHost.recycle();
serverName.recycle();
serverPort = 80;
remoteUser.recycle();
authType.recycle();
queryString.recycle();
authorization.recycle();
scheme = SCHEME_HTTP;
secure = false;
contentLength = 0;
contentType.recycle();
headers.recycle();
cookies.recycle();
attributes.clear();
tomcatInstanceId.recycle();
|
public org.apache.tomcat.util.buf.MessageBytes | remoteAddr()Get the remote address
return remoteAddr;
|
public org.apache.tomcat.util.buf.MessageBytes | remoteHost()Get the remote host
return remoteHost;
|
public org.apache.tomcat.util.buf.MessageBytes | remoteUser()Get the remote user
return remoteUser;
|
public org.apache.tomcat.util.buf.MessageBytes | requestURI()Get the request uri
return requestURI;
|
public org.apache.tomcat.util.buf.MessageBytes | serverName()Get the server name
return serverName;
|
public void | setAttribute(java.lang.String name, java.lang.Object value)Set an attribute on the request
if (name == null || value == null) {
return;
}
attributes.put(name, value);
|
public void | setContentLength(int i)Set the content length
contentLength = i;
|
public final void | setNote(int id, java.lang.Object cr)
notes[id]=cr;
|
public void | setScheme(java.lang.String s)Set the scheme.
scheme = s;
|
public void | setSecure(boolean b)Set whether the request is secure or not.
secure = b;
|
public void | setServerPort(int i)Set the server port
serverPort = i;
|
public java.lang.String | toString()** SLOW ** for debugging only!
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
pw.println("=== BaseRequest ===");
pw.println("method = " + method.toString());
pw.println("protocol = " + protocol.toString());
pw.println("requestURI = " + requestURI.toString());
pw.println("remoteAddr = " + remoteAddr.toString());
pw.println("remoteHost = " + remoteHost.toString());
pw.println("serverName = " + serverName.toString());
pw.println("serverPort = " + serverPort);
pw.println("remoteUser = " + remoteUser.toString());
pw.println("authType = " + authType.toString());
pw.println("queryString = " + queryString.toString());
pw.println("scheme = " + scheme.toString());
pw.println("secure = " + secure);
pw.println("contentLength = " + contentLength);
pw.println("contentType = " + contentType);
pw.println("attributes = " + attributes.toString());
pw.println("headers = " + headers.toString());
pw.println("cookies = " + cookies.toString());
pw.println("jvmRoute = " + tomcatInstanceId.toString());
return sw.toString();
|