Package org.craftercms.commons.web
Class ForwardedHeaderFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- org.springframework.web.filter.ForwardedHeaderFilter
-
- org.craftercms.commons.web.ForwardedHeaderFilter
-
- 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 ForwardedHeaderFilter extends org.springframework.web.filter.ForwardedHeaderFilter
Extension ofForwardedHeaderFilter
that can be disabled via configuration- Since:
- 3.1.9
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
enabled
-
Constructor Summary
Constructors Constructor Description ForwardedHeaderFilter(boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
shouldNotFilter(javax.servlet.http.HttpServletRequest request)
-
Methods inherited from class org.springframework.web.filter.ForwardedHeaderFilter
doFilterInternal, doFilterNestedErrorDispatch, setRelativeRedirects, setRemoveOnly, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted
-
-
-
-
Constructor Detail
-
ForwardedHeaderFilter
@ConstructorProperties("enabled") public ForwardedHeaderFilter(boolean enabled)
-
-