Class AbstractAccessLogValve.RemoteAddrElement
java.lang.Object
org.apache.catalina.valves.AbstractAccessLogValve.RemoteAddrElement
- All Implemented Interfaces:
AbstractAccessLogValve.AccessLogElement, AbstractAccessLogValve.CachedElement
- Enclosing class:
AbstractAccessLogValve
protected class AbstractAccessLogValve.RemoteAddrElement
extends Object
implements AbstractAccessLogValve.AccessLogElement, AbstractAccessLogValve.CachedElement
Write remote IP address - %a.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new remote address element using remote address type.RemoteAddrElement(String type) Creates a new remote address element with the specified type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(CharArrayWriter buf, Date date, Request request, Response response, long time) voidCache the value for the specified request.
-
Constructor Details
-
RemoteAddrElement
public RemoteAddrElement()Creates a new remote address element using remote address type. -
RemoteAddrElement
Creates a new remote address element with the specified type.- Parameters:
type- The address type ("remote" or "peer")
-
-
Method Details
-
addElement
public void addElement(CharArrayWriter buf, Date date, Request request, Response response, long time) - Specified by:
addElementin interfaceAbstractAccessLogValve.AccessLogElement
-
cache
Description copied from interface:AbstractAccessLogValve.CachedElementCache the value for the specified request.- Specified by:
cachein interfaceAbstractAccessLogValve.CachedElement- Parameters:
request- The request to cache the value for
-