Class ContentCachingFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- org.craftercms.engine.servlet.filter.ContentCachingFilter
-
- 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 ContentCachingFilter extends org.springframework.web.filter.OncePerRequestFilter
Filter to cache the body of POST form requests to be used by theConfigAwareProxyServlet
- Since:
- 3.1.9
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
enabled
-
Constructor Summary
Constructors Constructor Description ContentCachingFilter(boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
protected boolean
shouldNotFilter(javax.servlet.http.HttpServletRequest request)
-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Constructor Detail
-
ContentCachingFilter
@ConstructorProperties("enabled") public ContentCachingFilter(boolean enabled)
-
-
Method Detail
-
shouldNotFilter
protected boolean shouldNotFilter(javax.servlet.http.HttpServletRequest request)
- Overrides:
shouldNotFilter
in classorg.springframework.web.filter.OncePerRequestFilter
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
- Specified by:
doFilterInternal
in classorg.springframework.web.filter.OncePerRequestFilter
- Throws:
javax.servlet.ServletException
IOException
-
-