Class SessionIdChangedEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    HttpSessionIdChangedEvent

    public abstract class SessionIdChangedEvent
    extends AbstractSessionEvent
    Generic "session ID changed" event which indicates that a session identifier (potentially represented by a security context) has changed.
    Since:
    5.4
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      SessionIdChangedEvent​(java.lang.Object source)  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.lang.String getNewSessionId()
      Returns the new session ID.
      abstract java.lang.String getOldSessionId()
      Returns the old session ID.
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

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

      • SessionIdChangedEvent

        public SessionIdChangedEvent​(java.lang.Object source)
    • Method Detail

      • getOldSessionId

        public abstract java.lang.String getOldSessionId()
        Returns the old session ID.
        Returns:
        the identifier that was previously associated with the session.
      • getNewSessionId

        public abstract java.lang.String getNewSessionId()
        Returns the new session ID.
        Returns:
        the new identifier that is associated with the session.