public abstract static class ActionFilter.Simple extends AbstractComponent implements ActionFilter
ActionFilter.SimpledeprecationLogger, logger, settings| Modifier | Constructor and Description |
|---|---|
protected |
Simple(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
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. |
<Request extends ActionRequest,Response extends ActionResponse> |
apply(Task task,
java.lang.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 |
logDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorderprotected Simple(Settings settings)
public final <Request extends ActionRequest,Response extends ActionResponse> void apply(Task task, java.lang.String action, Request request, ActionListener<Response> listener, ActionFilterChain<Request,Response> chain)
ActionFilterActionListener or by continuing the execution through the given chainapply in interface ActionFilterprotected abstract boolean apply(java.lang.String action,
ActionRequest request,
ActionListener<?> listener)
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.