Class AbstractSessionEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.session.events.AbstractSessionEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SessionCreatedEvent, SessionDestroyedEvent

public abstract class AbstractSessionEvent extends org.springframework.context.ApplicationEvent
For SessionRepository implementations that support it, this event is fired when a Session is updated.
Since:
1.1
See Also:
  • Method Details

    • getSession

      public <S extends Session> S getSession()
      Gets the Session that was destroyed. For some SessionRepository implementations it may not be possible to get the original session in which case this may be null.
      Type Parameters:
      S - the type of Session
      Returns:
      the expired Session or null if the data store does not support obtaining it
    • getSessionId

      public String getSessionId()