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 theHttpSessionEventPublisher
when 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.String
getId()
java.util.List<SecurityContext>
getSecurityContexts()
Provides theSecurityContext
instances which were associated with the destroyed session.javax.servlet.http.HttpSession
getSession()
-
-
-
Method Detail
-
getSession
public javax.servlet.http.HttpSession getSession()
-
getSecurityContexts
public java.util.List<SecurityContext> getSecurityContexts()
Description copied from class:SessionDestroyedEvent
Provides theSecurityContext
instances which were associated with the destroyed session. Usually there will be only one security context per session.- Specified by:
getSecurityContexts
in classSessionDestroyedEvent
- Returns:
- the
SecurityContext
instances which were stored in the current session (an empty list if there are none).
-
getId
public java.lang.String getId()
- Specified by:
getId
in classSessionDestroyedEvent
- Returns:
- the identifier associated with the destroyed session.
-
-