Class HttpSessionEventPublisher

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionIdListener, javax.servlet.http.HttpSessionListener

    public class HttpSessionEventPublisher
    extends java.lang.Object
    implements javax.servlet.http.HttpSessionListener, javax.servlet.http.HttpSessionIdListener
    Declared in web.xml as
     <listener>
         <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
     </listener>
     
    Publishes HttpSessionApplicationEvents to the Spring Root WebApplicationContext. Maps javax.servlet.http.HttpSessionListener.sessionCreated() to HttpSessionCreatedEvent. Maps javax.servlet.http.HttpSessionListener.sessionDestroyed() to HttpSessionDestroyedEvent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sessionCreated​(javax.servlet.http.HttpSessionEvent event)
      Handles the HttpSessionEvent by publishing a HttpSessionCreatedEvent to the application appContext.
      void sessionDestroyed​(javax.servlet.http.HttpSessionEvent event)
      Handles the HttpSessionEvent by publishing a HttpSessionDestroyedEvent to the application appContext.
      void sessionIdChanged​(javax.servlet.http.HttpSessionEvent event, java.lang.String oldSessionId)  
      • Methods inherited from class java.lang.Object

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

      • HttpSessionEventPublisher

        public HttpSessionEventPublisher()
    • Method Detail

      • sessionCreated

        public void sessionCreated​(javax.servlet.http.HttpSessionEvent event)
        Handles the HttpSessionEvent by publishing a HttpSessionCreatedEvent to the application appContext.
        Specified by:
        sessionCreated in interface javax.servlet.http.HttpSessionListener
        Parameters:
        event - HttpSessionEvent passed in by the container
      • sessionDestroyed

        public void sessionDestroyed​(javax.servlet.http.HttpSessionEvent event)
        Handles the HttpSessionEvent by publishing a HttpSessionDestroyedEvent to the application appContext.
        Specified by:
        sessionDestroyed in interface javax.servlet.http.HttpSessionListener
        Parameters:
        event - The HttpSessionEvent pass in by the container
      • sessionIdChanged

        public void sessionIdChanged​(javax.servlet.http.HttpSessionEvent event,
                                     java.lang.String oldSessionId)
        Specified by:
        sessionIdChanged in interface javax.servlet.http.HttpSessionIdListener