org.jwall.web.audit.processor
Class RuleTagProcessor

java.lang.Object
  extended by org.jwall.web.audit.processor.RuleTagProcessor
All Implemented Interfaces:
EventProcessor<AuditEvent>

public class RuleTagProcessor
extends Object
implements EventProcessor<AuditEvent>

This process simply parses the EventMessages and extracts all RULE_TAGS to add them to the TAGS attribute.

Author:
Christian Bockermann <chris@jwall.org>

Field Summary
 
Fields inherited from interface org.jwall.audit.EventProcessor
DELETE_FLAG
 
Constructor Summary
RuleTagProcessor()
           
 
Method Summary
 String getSeparator()
           
 String getUser()
           
 AuditEvent processEvent(AuditEvent event, Map<String,Object> context)
          This method is called upon event reception.
 void setSeparator(String separator)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleTagProcessor

public RuleTagProcessor()
Method Detail

getSeparator

public String getSeparator()
Returns:
the separator

setSeparator

public void setSeparator(String separator)
Parameters:
separator - the separator to set

getUser

public String getUser()
Returns:
the user

setUser

public void setUser(String user)
Parameters:
user - the user to set

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.