Class ActionFilter.Simple

  • All Implemented Interfaces:
    ActionFilter
    Enclosing interface:
    ActionFilter

    public abstract static class ActionFilter.Simple
    extends AbstractComponent
    implements ActionFilter
    A simple base class for injectable action filters that spares the implementation from handling the filter chain. This base class should serve any action filter implementations that doesn't require to apply async filtering logic.
    • Constructor Detail

      • Simple

        protected Simple​(Settings settings)
    • Method Detail

      • apply

        protected abstract boolean apply​(java.lang.String action,
                                         ActionRequest request,
                                         ActionListener<?> listener)
        Applies this filter and returns true if the execution chain should proceed, or false if it should be aborted since the filter already handled the request and called the given listener.