Class SessionInvalidateFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
de.hybris.platform.oauth2.filter.SessionInvalidateFilter
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 SessionInvalidateFilter extends org.springframework.web.filter.GenericFilterBean
It invalidate the http session if present and if the HttpServletRequest.getRequestURI() matches with one of includeUris regexes
  • Field Summary

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
     
    void
     
    void
    setIncludeUris(Set<String> includeUris)
     

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionInvalidateFilter

      public SessionInvalidateFilter()
    • SessionInvalidateFilter

      public SessionInvalidateFilter(Set<String> includeUris)
  • Method Details

    • init

      @PostConstruct public void init()
    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • setIncludeUris

      public void setIncludeUris(Set<String> includeUris)