Class HttpSessionDestroyedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
All Implemented Interfaces:
Serializable

public class HttpSessionDestroyedEvent extends SessionDestroyedEvent
Published by the HttpSessionEventPublisher when a HttpSession is removed from the container
See Also:
  • Constructor Details

    • HttpSessionDestroyedEvent

      public HttpSessionDestroyedEvent(jakarta.servlet.http.HttpSession session)
  • Method Details

    • getSession

      public jakarta.servlet.http.HttpSession getSession()
    • getSecurityContexts

      public List<SecurityContext> getSecurityContexts()
      Description copied from class: SessionDestroyedEvent
      Provides the SecurityContext instances which were associated with the destroyed session. Usually there will be only one security context per session.
      Specified by:
      getSecurityContexts in class SessionDestroyedEvent
      Returns:
      the SecurityContext instances which were stored in the current session (an empty list if there are none).
    • getId

      public String getId()
      Specified by:
      getId in class SessionDestroyedEvent
      Returns:
      the identifier associated with the destroyed session.