public class RequestCacheAwareFilter
extends org.springframework.web.filter.GenericFilterBean
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.
Constructor and Description |
---|
RequestCacheAwareFilter() |
RequestCacheAwareFilter(RequestCache requestCache) |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
setRequestCache(RequestCache requestCache)
Deprecated.
Use constructor injection
|
public RequestCacheAwareFilter()
public RequestCacheAwareFilter(RequestCache requestCache)
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
@Deprecated public void setRequestCache(RequestCache requestCache)