Class ConsentLayerFilter

  • 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 ConsentLayerFilter
    extends org.springframework.web.filter.OncePerRequestFilter
    Generates the consent reference for the user and stores it in a cookie and in session
    • Constructor Detail

      • ConsentLayerFilter

        public ConsentLayerFilter()
    • Method Detail

      • doFilterInternal

        protected void doFilterInternal​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                        javax.servlet.http.HttpServletResponse httpServletResponse,
                                        javax.servlet.FilterChain filterChain)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
        Specified by:
        doFilterInternal in class org.springframework.web.filter.OncePerRequestFilter
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • isProfileTrackingPaused

        protected boolean isProfileTrackingPaused​(javax.servlet.http.HttpServletRequest httpServletRequest)
      • isProfileTrackingConsentGiven

        protected boolean isProfileTrackingConsentGiven​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                        javax.servlet.http.HttpServletResponse httpServletResponse)
      • isActiveAccount

        protected boolean isActiveAccount()
      • shouldNotFilter

        protected boolean shouldNotFilter​(javax.servlet.http.HttpServletRequest request)
                                   throws javax.servlet.ServletException
        Overrides:
        shouldNotFilter in class org.springframework.web.filter.OncePerRequestFilter
        Throws:
        javax.servlet.ServletException
      • setConsentService

        public void setConsentService​(ConsentService consentService)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • setProfileConfigurationService

        public void setProfileConfigurationService​(ProfileConfigurationService profileConfigurationService)
      • setExcludeUrlPatterns

        public void setExcludeUrlPatterns​(java.lang.String excludeUrlPatterns)
      • setUserService

        public void setUserService​(UserService userService)
      • setSessionService

        public void setSessionService​(SessionService sessionService)