org.springframework.security.web.savedrequest
Class RequestCacheAwareFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.security.web.savedrequest.RequestCacheAwareFilter
- All Implemented Interfaces:
- Filter, BeanNameAware, DisposableBean, InitializingBean, ServletContextAware
public class RequestCacheAwareFilter
- extends 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
- Version:
- $Id$
- Author:
- Luke Taylor
Methods inherited from class org.springframework.web.filter.GenericFilterBean |
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setServletContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestCacheAwareFilter
public RequestCacheAwareFilter()
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Throws:
IOException
ServletException
setRequestCache
public void setRequestCache(RequestCache requestCache)
Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.