|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jwall.web.audit.AuditEventRegexpFilter
public class AuditEventRegexpFilter
This class resembles a flexible AuditEventFilter that uses regular expressions to match an AuditEvent object. It is intended to be an example-implementation of the AuditEventFilter interface, but may well suit for a lot of applications.
| Constructor Summary | |
|---|---|
AuditEventRegexpFilter(java.lang.String variable,
java.lang.String regexp)
Creates a filter that matches all audit-events which have a ModSecurity-variable variable that has a values
matching regexp. |
|
| Method Summary | |
|---|---|
java.lang.String |
filterCommand()
The method should return a string that represents the instance of this filter. |
boolean |
isNegated()
Returns true if the expression is negated, e.g. starts with a ! |
boolean |
matches(AuditEvent e)
This method returns true, if the filter matches the given event evt. |
java.lang.String |
toString()
Returns a string with information about this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuditEventRegexpFilter(java.lang.String variable,
java.lang.String regexp)
throws SyntaxException
variable that has a values
matching regexp.
variable - The variable whose value is checked.regexp - The regular expression that needs to be matched.
SyntaxException - In case an unknown variable is specified (variable needs
to be in ModSecurity.VARIABLES[]) or the regular expression failed to be parsed.| Method Detail |
|---|
public boolean isNegated()
true if the expression is negated, e.g. starts with a !.
public boolean matches(AuditEvent e)
AuditEventFilterevt.
matches in interface AuditEventFiltere - the event to match against
true iff the event matches this filterpublic java.lang.String filterCommand()
AuditEventFilter
filterCommand in interface AuditEventFilterpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||