Class StandardEngine.NoopAccessLog
java.lang.Object
org.apache.catalina.core.StandardEngine.NoopAccessLog
-
Field Summary
Fields inherited from interface org.apache.catalina.AccessLog
PROTOCOL_ATTRIBUTE, REMOTE_ADDR_ATTRIBUTE, REMOTE_HOST_ATTRIBUTE, SERVER_NAME_ATTRIBUTE, SERVER_PORT_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Add the request/response to the access log using the specified processing time.void
setRequestAttributesEnabled
(boolean requestAttributesEnabled) Should this valve use request attributes for IP address, hostname, protocol and port used for the request?
-
Constructor Details
-
NoopAccessLog
protected NoopAccessLog()
-
-
Method Details
-
log
Description copied from interface:AccessLog
Add the request/response to the access log using the specified processing time.- Specified by:
log
in interfaceAccessLog
- Parameters:
request
- Request (associated with the response) to logresponse
- Response (associated with the request) to logtime
- Time taken to process the request/response in nanoseconds (use 0 if not known); in Tomcat versions prior to 10, the time unit was milliseconds
-
setRequestAttributesEnabled
public void setRequestAttributesEnabled(boolean requestAttributesEnabled) Description copied from interface:AccessLog
Should this valve use request attributes for IP address, hostname, protocol and port used for the request? The attributes used are:- org.apache.catalina.RemoteAddr
- org.apache.catalina.RemoteHost
- org.apache.catalina.Protocol
- org.apache.catalina.ServerName
- org.apache.catalina.ServerPost
- Specified by:
setRequestAttributesEnabled
in interfaceAccessLog
- Parameters:
requestAttributesEnabled
-true
causes the attributes to be used,false
causes the original values to be used.
-
getRequestAttributesEnabled
public boolean getRequestAttributesEnabled()- Specified by:
getRequestAttributesEnabled
in interfaceAccessLog
- Returns:
true
if the attributes will be logged, otherwisefalse
- See Also:
-