Class HttpSessionDestroyedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.security.core.session.AbstractSessionEvent
-
- org.springframework.security.core.session.SessionDestroyedEvent
-
- org.springframework.security.web.session.HttpSessionDestroyedEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpSessionDestroyedEvent extends SessionDestroyedEvent
Published by theHttpSessionEventPublisherwhen a HttpSession is removed from the container- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpSessionDestroyedEvent(javax.servlet.http.HttpSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()java.util.List<SecurityContext>getSecurityContexts()Provides theSecurityContextinstances which were associated with the destroyed session.javax.servlet.http.HttpSessiongetSession()
-
-
-
Method Detail
-
getSession
public javax.servlet.http.HttpSession getSession()
-
getSecurityContexts
public java.util.List<SecurityContext> getSecurityContexts()
Description copied from class:SessionDestroyedEventProvides theSecurityContextinstances which were associated with the destroyed session. Usually there will be only one security context per session.- Specified by:
getSecurityContextsin classSessionDestroyedEvent- Returns:
- the
SecurityContextinstances which were stored in the current session (an empty list if there are none).
-
getId
public java.lang.String getId()
- Specified by:
getIdin classSessionDestroyedEvent- Returns:
- the identifier associated with the destroyed session.
-
-