PROTOCOL_ATTRIBUTE, REMOTE_ADDR_ATTRIBUTE, REMOTE_HOST_ATTRIBUTE, SERVER_NAME_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 use 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)
AccessLog
public void setRequestAttributesEnabled(boolean requestAttributesEnabled)
AccessLog
setRequestAttributesEnabled
in interface AccessLog
requestAttributesEnabled
- true
causes the attributes
to be used, false
causes
the original values to be used.public boolean getRequestAttributesEnabled()
getRequestAttributesEnabled
in interface AccessLog
true
if the attributes will be logged, otherwise
false
AccessLog.setRequestAttributesEnabled(boolean)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.