org.apache.catalina.core
Class StandardEngine.NoopAccessLog
java.lang.Object
org.apache.catalina.core.StandardEngine.NoopAccessLog
- All Implemented Interfaces:
- AccessLog
- Enclosing class:
- StandardEngine
protected static final class StandardEngine.NoopAccessLog
- extends Object
- implements AccessLog
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 |
StandardEngine.NoopAccessLog
protected StandardEngine.NoopAccessLog()
log
public void log(Request request,
Response response,
long time)
- Description copied from interface:
AccessLog
- Add the request/response to the access log using the specified processing
time.
- Specified by:
log
in interface AccessLog
- Parameters:
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)
setRequestAttributesEnabled
public void setRequestAttributesEnabled(boolean requestAttributesEnabled)
- Description copied from interface:
AccessLog
- Should this valve set request attributes for IP address, Hostname,
protocol and port used for the request? This are typically used in
conjunction with the
AccessLogValve
which will otherwise log the original values.
Default is true
.
The attributes set are:
- org.apache.catalina.RemoteAddr
- org.apache.catalina.RemoteHost
- org.apache.catalina.Protocol
- org.apache.catalina.ServerPost
- Specified by:
setRequestAttributesEnabled
in interface AccessLog
- Parameters:
requestAttributesEnabled
- true
causes the attributes
to be set, false
disables
the setting of the attributes.
getRequestAttributesEnabled
public boolean getRequestAttributesEnabled()
- Specified by:
getRequestAttributesEnabled
in interface AccessLog
- Returns:
true
if the attributes will be logged, otherwise
false
- See Also:
AccessLog.setRequestAttributesEnabled(boolean)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.