Package org.apache.shiro.web.filter.mgt
Interface FilterChainResolver
-
- All Known Implementing Classes:
PathMatchingFilterChainResolver
public interface FilterChainResolverAFilterChainResolvercan resolve an appropriateFilterChainto execute during aServletRequest. It allows resolution of arbitrary filter chains which can be executed for any given request or URI/URL. This mechanism allows for a much more flexible FilterChain resolution than normalweb.xmlservlet filter definitions: it allows arbitrary filter chains to be defined per URL in a much more concise and easy to read manner, and even allows filter chains to be dynamically resolved or constructed at runtime if the underlying implementation supports it.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.servlet.FilterChaingetChain(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain originalChain)Returns the filter chain that should be executed for the given request, ornullif the original chain should be used.
-
-
-
Method Detail
-
getChain
javax.servlet.FilterChain getChain(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain originalChain)Returns the filter chain that should be executed for the given request, ornullif the original chain should be used. This method allows a implementation to define arbitrary securityFilterchains for any given request or URL pattern.- Parameters:
request- the incoming ServletRequestresponse- the outgoing ServletResponseoriginalChain- the originalFilterChainintercepted by the ShiroFilter implementation.- Returns:
- the filter chain that should be executed for the given request, or
nullif the original chain should be used.
-
-