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, setupChild
public SeverityMatchFilter()
public final void setSeverity(SeverityLevel severity)
severity
- The new severity levelSeverityLevel
public final void setAcceptOnMatch(boolean acceptOnMatch)
acceptOnMatch
- if true, accept on matches; if
false, reject on matches.protected void finishLocalSetup() throws CheckstyleException
AutomaticBean
The default implementation does nothing.
finishLocalSetup
in class AutomaticBean
CheckstyleException
- if there is a configuration error.public boolean accept(AuditEvent event)
Filter
Copyright © 2001–2018. All rights reserved.