PROTOCOL_ATTRIBUTE, REMOTE_ADDR_ATTRIBUTE, REMOTE_HOST_ATTRIBUTE, SERVER_PORT_ATTRIBUTE| Constructor and Description |
|---|
AccessLogAdapter(AccessLog log) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AccessLog log) |
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?
|
public AccessLogAdapter(AccessLog log)
public void add(AccessLog log)
public void log(Request request, Response response, long time)
AccessLogpublic void setRequestAttributesEnabled(boolean requestAttributesEnabled)
AccessLogAccessLogValve
which will otherwise log the original values.
Default is true.
The attributes set are:
setRequestAttributesEnabled in interface AccessLogrequestAttributesEnabled - true causes the attributes
to be set, false disables
the setting of the attributes.public boolean getRequestAttributesEnabled()
getRequestAttributesEnabled in interface AccessLogtrue if the attributes will be logged, otherwise
falseAccessLog.setRequestAttributesEnabled(boolean)Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.