Package org.springframework.security.web
Class RequestMatcherRedirectFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- org.springframework.security.web.RequestMatcherRedirectFilter
-
- All Implemented Interfaces:
javax.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
public final class RequestMatcherRedirectFilter extends org.springframework.web.filter.OncePerRequestFilterFilter that redirects requests that matchRequestMatcherto the specified URL.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description RequestMatcherRedirectFilter(RequestMatcher requestMatcher, java.lang.String redirectUrl)Create and initialize an instance of the filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Constructor Detail
-
RequestMatcherRedirectFilter
public RequestMatcherRedirectFilter(RequestMatcher requestMatcher, java.lang.String redirectUrl)
Create and initialize an instance of the filter.- Parameters:
requestMatcher- the request matcherredirectUrl- the redirect URL
-
-
Method Detail
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException- Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
-