Class SeverityMatchFilter

  • All Implemented Interfaces:
    Configurable, Contextualizable, Filter

    public class SeverityMatchFilter
    extends AutomaticBean
    implements Filter
    This is a very simple filter based on severity matching. The filter admits option severity and accepts an AuditEvent if its severity equals the filter's severity.
    • Constructor Detail

      • SeverityMatchFilter

        public SeverityMatchFilter()
    • Method Detail

      • setSeverity

        public final void setSeverity​(SeverityLevel severity)
        Sets the severity level.
        Parameters:
        severity - The new severity level
        See Also:
        SeverityLevel
      • setAcceptOnMatch

        public final void setAcceptOnMatch​(boolean acceptOnMatch)
        Sets whether to accept or reject on matching severity level.
        Parameters:
        acceptOnMatch - if true, accept on matches; if false, reject on matches.
      • finishLocalSetup

        protected void finishLocalSetup()
        Description copied from class: AutomaticBean
        Provides a hook to finish the part of this component's setup that was not handled by the bean introspection.

        The default implementation does nothing.

        Specified by:
        finishLocalSetup in class AutomaticBean
      • accept

        public boolean accept​(AuditEvent event)
        Description copied from interface: Filter
        Determines whether or not a filtered AuditEvent is accepted.
        Specified by:
        accept in interface Filter
        Parameters:
        event - the AuditEvent to filter.
        Returns:
        true if the event is accepted.