org.jwall.web.audit.processor
Class XForwardedForResolver
java.lang.Object
org.jwall.web.audit.processor.XForwardedForResolver
- All Implemented Interfaces:
- EventProcessor<AuditEvent>
public class XForwardedForResolver
- extends Object
- implements EventProcessor<AuditEvent>
This class implements a simple resolver for X-Forwarded-For headers. It will
replace the REMOTE_ADDR variable with the X-Forwarded-For address, if such a
header is present.
- Author:
- Christian Bockermann <chris@jwall.org>
|
Field Summary |
static String |
X_FORWARDED_FOR
Header variables are treated case-insensitive, we make this all upper-case |
X_FORWARDED_FOR
public static String X_FORWARDED_FOR
- Header variables are treated case-insensitive, we make this all upper-case
XForwardedForResolver
public XForwardedForResolver()
processEvent
public AuditEvent processEvent(AuditEvent event,
Map<String,Object> context)
throws Exception
- Description copied from interface:
EventProcessor
- This method is called upon event reception. The given map provides a context to
communicate data between several event-processors. The implementor of this interface
needs to take care that calls to this class my come from different threads, i.e.
no state should be stored in the class to diminish the risk of concurrency problems.
- Specified by:
processEvent in interface EventProcessor<AuditEvent>
- Returns:
-
- Throws:
Exception- See Also:
EventProcessor.processEvent(org.jwall.audit.Event, java.util.Map)
Copyright © 2012 jwall.org. All Rights Reserved.