public class SeverityMatchFilter extends AutomaticBean implements Filter
| Modifier and Type | Field and Description |
|---|---|
private boolean |
acceptOnMatch
Whether to accept or reject on severity matches.
|
private SeverityLevel |
severity
The severity level to accept.
|
| Constructor and Description |
|---|
SeverityMatchFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(AuditEvent event)
Determines whether or not a filtered AuditEvent is accepted.
|
void |
setAcceptOnMatch(boolean acceptOnMatch)
Sets whether to accept or reject on matching severity level.
|
void |
setSeverity(SeverityLevel severity)
Sets the severity level.
|
configure, contextualize, finishLocalSetup, getConfiguration, setupChildprivate SeverityLevel severity
private boolean acceptOnMatch
public final void setSeverity(SeverityLevel severity)
severity - The new severity levelSeverityLevelpublic final void setAcceptOnMatch(boolean acceptOnMatch)
acceptOnMatch - if true, accept on matches; if
false, reject on matches.public boolean accept(AuditEvent event)
Filter