Module org.elasticsearch.server
Package org.elasticsearch.action.support
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 TypeMethodDescriptionReturn the name of the action for which this filter should be run<Request extends ActionRequest,Response extends ActionResponse>
voidapply(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 theActionListeneror by continuing the execution through the givenchain
-
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 theActionListeneror by continuing the execution through the givenchain
-