public class SeverityMatchFilter extends AutomaticBean implements Filter
AutomaticBean.OutputStreamOptions| Constructor and Description |
|---|
SeverityMatchFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(AuditEvent event)
Determines whether or not a filtered AuditEvent is accepted.
|
protected void |
finishLocalSetup()
Provides a hook to finish the part of this component's setup that
was not handled by the bean introspection.
|
void |
setAcceptOnMatch(boolean acceptOnMatch)
Sets whether to accept or reject on matching severity level.
|
void |
setSeverity(SeverityLevel severity)
Sets the severity level.
|
configure, contextualize, getConfiguration, setupChildpublic SeverityMatchFilter()
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.protected void finishLocalSetup() throws CheckstyleException
AutomaticBeanThe default implementation does nothing.
finishLocalSetup in class AutomaticBeanCheckstyleException - if there is a configuration error.public boolean accept(AuditEvent event)
FilterCopyright © 2001–2018. All rights reserved.