Class 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 of ForwardedHeaderFilter that can be disabled via configuration
    Since:
    3.1.9
    Author:
    joseross
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean enabled  
      • Fields inherited from class org.springframework.web.filter.OncePerRequestFilter

        ALREADY_FILTERED_SUFFIX
      • Fields inherited from class org.springframework.web.filter.GenericFilterBean

        logger
    • 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
      • Methods inherited from class org.springframework.web.filter.GenericFilterBean

        addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
    • Field Detail

      • enabled

        protected boolean enabled
    • Constructor Detail

    • Method Detail

      • shouldNotFilter

        protected boolean shouldNotFilter​(javax.servlet.http.HttpServletRequest request)
        Overrides:
        shouldNotFilter in class org.springframework.web.filter.ForwardedHeaderFilter