public class

RequestCacheAwareFilter

extends GenericFilterBean
java.lang.Object
   ↳ org.springframework.web.filter.GenericFilterBean
     ↳ org.springframework.security.web.savedrequest.RequestCacheAwareFilter

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class org.springframework.web.filter.GenericFilterBean
Public Constructors
RequestCacheAwareFilter()
RequestCacheAwareFilter(RequestCache requestCache)
Public Methods
void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
void setRequestCache(RequestCache requestCache)
This method is deprecated. Use constructor injection
[Expand]
Inherited Methods
From class org.springframework.web.filter.GenericFilterBean
From class java.lang.Object
From interface javax.servlet.Filter
From interface org.springframework.beans.factory.BeanNameAware
From interface org.springframework.beans.factory.DisposableBean
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.web.context.ServletContextAware

Public Constructors

public RequestCacheAwareFilter ()

public RequestCacheAwareFilter (RequestCache requestCache)

Public Methods

public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain)

Throws
IOException
ServletException

public void setRequestCache (RequestCache requestCache)

This method is deprecated.
Use constructor injection