Package org.apache.catalina.core
Class AccessLogAdapter
- java.lang.Object
-
- org.apache.catalina.core.AccessLogAdapter
-
-
Field Summary
-
Fields inherited from interface org.apache.catalina.AccessLog
PROTOCOL_ATTRIBUTE, REMOTE_ADDR_ATTRIBUTE, REMOTE_HOST_ATTRIBUTE, SERVER_PORT_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description AccessLogAdapter(AccessLog log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(AccessLog log)booleangetRequestAttributesEnabled()voidlog(Request request, Response response, long time)Add the request/response to the access log using the specified processing time.voidsetRequestAttributesEnabled(boolean requestAttributesEnabled)Should this valve set request attributes for IP address, hostname, protocol and port used for the request?
-
-
-
Constructor Detail
-
AccessLogAdapter
public AccessLogAdapter(AccessLog log)
-
-
Method Detail
-
add
public void add(AccessLog log)
-
log
public void log(Request request, Response response, long time)
Description copied from interface:AccessLogAdd the request/response to the access log using the specified processing time.
-
setRequestAttributesEnabled
public void setRequestAttributesEnabled(boolean requestAttributesEnabled)
Description copied from interface:AccessLogShould this valve set request attributes for IP address, hostname, protocol and port used for the request? This are typically used in conjunction with theAccessLogValvewhich will otherwise log the original values. The attributes set are:- org.apache.catalina.RemoteAddr
- org.apache.catalina.RemoteHost
- org.apache.catalina.Protocol
- org.apache.catalina.ServerPost
- Specified by:
setRequestAttributesEnabledin interfaceAccessLog- Parameters:
requestAttributesEnabled-truecauses the attributes to be set,falsedisables the setting of the attributes.
-
getRequestAttributesEnabled
public boolean getRequestAttributesEnabled()
- Specified by:
getRequestAttributesEnabledin interfaceAccessLog- Returns:
trueif the attributes will be logged, otherwisefalse- See Also:
AccessLog.setRequestAttributesEnabled(boolean)
-
-