Method from org.apache.tomcat.util.http.BaseRequest Detail: |
public MessageBytes authType() {
return authType;
}
|
public MessageBytes authorization() {
return authorization;
}
Get the authorization credentials |
public MessageBytes contentType() {
return contentType;
}
|
public Cookies cookies() {
return cookies;
}
|
public Object getAttribute(String name) {
if (name == null) {
return null;
}
return attributes.get(name);
}
Get an attribute on the request |
public Iterator getAttributeNames() {
return attributes.keySet().iterator();
}
Get iterator over attribute names |
public int getContentLength() {
return contentLength;
}
|
public final Object getNote(int id) {
return notes[id];
}
|
public String getScheme() {
return scheme;
}
|
public boolean getSecure() {
return secure;
}
Get whether the request is secure or not. |
public int getServerPort() {
return serverPort;
}
|
public MimeHeaders headers() {
return headers;
}
Get this request's headers |
public MessageBytes instanceId() {
return tomcatInstanceId;
}
Get the host id ( or jvmRoute ) |
public MessageBytes jvmRoute() {
return tomcatInstanceId;
}
|
public MessageBytes method() {
return method;
}
|
public MessageBytes protocol() {
return protocol;
}
|
public MessageBytes queryString() {
return queryString;
}
|
public void recycle() {
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();
}
Recycles this object and readies it further use. |
public MessageBytes remoteAddr() {
return remoteAddr;
}
|
public MessageBytes remoteHost() {
return remoteHost;
}
|
public MessageBytes remoteUser() {
return remoteUser;
}
|
public MessageBytes requestURI() {
return requestURI;
}
|
public MessageBytes serverName() {
return serverName;
}
|
public void setAttribute(String name,
Object value) {
if (name == null || value == null) {
return;
}
attributes.put(name, value);
}
Set an attribute on the request |
public void setContentLength(int i) {
contentLength = i;
}
|
public final void setNote(int id,
Object cr) {
notes[id]=cr;
}
|
public void setScheme(String s) {
scheme = s;
}
|
public void setSecure(boolean b) {
secure = b;
}
Set whether the request is secure or not. |
public void setServerPort(int i) {
serverPort = i;
}
|
public String toString() {
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();
}
** SLOW ** for debugging only! |