org.jwall.web.audit
Interface AuditEventFilter

All Known Implementing Classes:
AuditEventRegexpFilter

public interface AuditEventFilter

This interface defines the methods that every event-filter needs to provide.

Author:
Christian Bockermann <chris@jwall.org>

Method Summary
 java.lang.String filterCommand()
          The method should return a string that represents the instance of this filter.
 boolean matches(AuditEvent evt)
          This method returns true, if the filter matches the given event evt.
 

Method Detail

matches

boolean matches(AuditEvent evt)
This method returns true, if the filter matches the given event evt.

Parameters:
evt - the event to match against
Returns:
true iff the event matches this filter

filterCommand

java.lang.String filterCommand()
The method should return a string that represents the instance of this filter. This can then be used to create a new instance from this string that behaves exactly as the filter that produced the string.

Returns:
A string-representation of this filter.