Package org.apache.catalina.core
Class AccessLogAdapter
java.lang.Object
org.apache.catalina.core.AccessLogAdapter
- All Implemented Interfaces:
- AccessLog
A helper class that wraps several AccessLog instances.
- 
Field SummaryFields inherited from interface org.apache.catalina.AccessLogPROTOCOL_ATTRIBUTE, REMOTE_ADDR_ATTRIBUTE, REMOTE_HOST_ATTRIBUTE, SERVER_NAME_ATTRIBUTE, SERVER_PORT_ATTRIBUTE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanvoidAdd the request/response to the access log using the specified processing time.voidsetRequestAttributesEnabled(boolean requestAttributesEnabled) Should this valve use request attributes for IP address, hostname, protocol and port used for the request?
- 
Constructor Details- 
AccessLogAdapter
 
- 
- 
Method Details- 
add
- 
logDescription copied from interface:AccessLogAdd the request/response to the access log using the specified processing time.- Specified by:
- login interface- AccessLog
- Parameters:
- request- Request (associated with the response) to log
- response- Response (associated with the request) to log
- time- 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
 
- 
setRequestAttributesEnabledpublic void setRequestAttributesEnabled(boolean requestAttributesEnabled) Description copied from interface:AccessLogShould 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:
- setRequestAttributesEnabledin interface- AccessLog
- Parameters:
- requestAttributesEnabled-- truecauses the attributes to be used,- falsecauses the original values to be used.
 
- 
getRequestAttributesEnabledpublic boolean getRequestAttributesEnabled()- Specified by:
- getRequestAttributesEnabledin interface- AccessLog
- Returns:
- trueif the attributes will be logged, otherwise- false
- See Also:
 
 
-