Class HttpSessionInvalidatorSpringFilter

  • 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 HttpSessionInvalidatorSpringFilter
    extends org.springframework.web.filter.GenericFilterBean
    Invalide la HttpSession a la fin de la HttpRequest Utile en Web-Service REST pour pas conserver une Session inutilement
    Author:
    jec
    • Field Summary

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

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doFilter​(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)  
      void setClearSecurityContext​(boolean clearSecurityContext)  
      void setInvalidateSession​(boolean invalidateSession)  
      • 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 Detail

      • HttpSessionInvalidatorSpringFilter

        public HttpSessionInvalidatorSpringFilter()
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest req,
                             javax.servlet.ServletResponse res,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • setClearSecurityContext

        public void setClearSecurityContext​(boolean clearSecurityContext)
      • setInvalidateSession

        public void setInvalidateSession​(boolean invalidateSession)