Interface MappedActionFilter


public interface MappedActionFilter
An action filter that is run only for a single action. Note: This is an independent interface from ActionFilter so that it does not have an order. The relative order of executed MappedActionFilter with the same action name is undefined.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the name of the action for which this filter should be run
    <Request extends ActionRequest, Response extends ActionResponse>
    void
    apply(Task task, String action, Request request, ActionListener<Response> listener, ActionFilterChain<Request,Response> chain)
    Enables filtering the execution of an action on the request side, either by sending a response through the ActionListener or by continuing the execution through the given chain
  • Method Details

    • actionName

      String actionName()
      Return the name of the action for which this filter should be run
    • apply

      <Request extends ActionRequest, Response extends ActionResponse> void apply(Task task, String action, Request request, ActionListener<Response> listener, ActionFilterChain<Request,Response> chain)
      Enables filtering the execution of an action on the request side, either by sending a response through the ActionListener or by continuing the execution through the given chain