Package cn.sliew.milky.common.filter
Interface ActionFilter<Request,Response>
-
public interface ActionFilter<Request,Response>A filter allowing to filter transport actions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(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 givenchainintorder()The position of the filter in the chain.
-
-
-
Method Detail
-
order
int order()
The position of the filter in the chain. Execution is done from lowest order to highest.
-
apply
void apply(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
-
-