|
Apache Tomcat 7.0.25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.core.StandardEngine.NoopAccessLog
protected static final class StandardEngine.NoopAccessLog
Field Summary |
---|
Fields inherited from interface org.apache.catalina.AccessLog |
---|
PROTOCOL_ATTRIBUTE, REMOTE_ADDR_ATTRIBUTE, REMOTE_HOST_ATTRIBUTE, SERVER_PORT_ATTRIBUTE |
Constructor Summary | |
---|---|
protected |
StandardEngine.NoopAccessLog()
|
Method Summary | |
---|---|
boolean |
getRequestAttributesEnabled()
|
void |
log(Request request,
Response response,
long time)
Add the request/response to the access log using the specified processing time. |
void |
setRequestAttributesEnabled(boolean requestAttributesEnabled)
Should this valve set request attributes for IP address, Hostname, protocol and port used for the request? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StandardEngine.NoopAccessLog()
Method Detail |
---|
public void log(Request request, Response response, long time)
AccessLog
log
in interface AccessLog
request
- Request (associated with the response) to logresponse
- Response (associated with the request) to logtime
- Time taken to process the request/response in
milliseconds (use 0 if not known)public void setRequestAttributesEnabled(boolean requestAttributesEnabled)
AccessLog
AccessLogValve
which will otherwise log the original values.
Default is true
.
The attributes set are:
setRequestAttributesEnabled
in interface AccessLog
requestAttributesEnabled
- true
causes the attributes
to be set, false
disables
the setting of the attributes.public boolean getRequestAttributesEnabled()
getRequestAttributesEnabled
in interface AccessLog
true
if the attributes will be logged, otherwise
false
AccessLog.setRequestAttributesEnabled(boolean)
|
Apache Tomcat 7.0.25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |