org.springframework.security.web.savedrequest
Class RequestCacheAwareFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
RequestCacheAwareFilter()
           
 
Method Summary
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void setRequestCache(RequestCache requestCache)
           
 
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
 

Constructor Detail

RequestCacheAwareFilter

public RequestCacheAwareFilter()
Method Detail

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.