Class RequestCacheAwareFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.security.web.savedrequest.RequestCacheAwareFilter
-
- 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 class RequestCacheAwareFilter extends org.springframework.web.filter.GenericFilterBean
Responsible for reconstituting the saved request if one is cached and it matches the current request.It will call
getMatchingRequest
on the configured RequestCache. If the method returns a value (a wrapper of the saved request), it will pass this to the filter chain's doFilter method. If null is returned by the cache, the original request is used and the filter has no effect.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description RequestCacheAwareFilter()
RequestCacheAwareFilter(RequestCache requestCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
-
-
-
Constructor Detail
-
RequestCacheAwareFilter
public RequestCacheAwareFilter()
-
RequestCacheAwareFilter
public RequestCacheAwareFilter(RequestCache requestCache)
-
-