Base API for servlet-based application request filtering.
@FunctionalInterface public interface Action extends Rule
FilterChainof the request.
It is possible for actions to have nested rules (including both matchers and/or actions). This might be most appropriate when an action wraps the request or response objects before performing additional rules, such as a "noSession" implementation might do.
TODO: actions should be in own submodule?
|Modifier and Type||Interface and Description|
Action.Result perform(FirewallContext context, HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException
request- The request being matched
response- The current response
chain- The current filter chain
Action.Result.TERMINATEfor a terminating action that has handled the request/response or
Action.Result.CONTINUEfor a non-terminating action.
Result#NO_MATCHare not valid returns from an action.
Copyright © 2018–2020 AO Industries, Inc.. All rights reserved.