public class HttpSessionEventPublisher
extends java.lang.Object
implements javax.servlet.http.HttpSessionListener, javax.servlet.http.HttpSessionIdListener
<listener> <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> </listener>Publishes
HttpSessionApplicationEvent
s to the Spring Root
WebApplicationContext. Maps javax.servlet.http.HttpSessionListener.sessionCreated() to
HttpSessionCreatedEvent
. Maps
javax.servlet.http.HttpSessionListener.sessionDestroyed() to
HttpSessionDestroyedEvent
.Constructor and Description |
---|
HttpSessionEventPublisher() |
Modifier and Type | Method and Description |
---|---|
void |
sessionCreated(javax.servlet.http.HttpSessionEvent event)
Handles the HttpSessionEvent by publishing a
HttpSessionCreatedEvent to the
application appContext. |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Handles the HttpSessionEvent by publishing a
HttpSessionDestroyedEvent to
the application appContext. |
void |
sessionIdChanged(javax.servlet.http.HttpSessionEvent event,
java.lang.String oldSessionId) |
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
HttpSessionCreatedEvent
to the
application appContext.sessionCreated
in interface javax.servlet.http.HttpSessionListener
event
- HttpSessionEvent passed in by the containerpublic void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
HttpSessionDestroyedEvent
to
the application appContext.sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
event
- The HttpSessionEvent pass in by the containerpublic void sessionIdChanged(javax.servlet.http.HttpSessionEvent event, java.lang.String oldSessionId)
sessionIdChanged
in interface javax.servlet.http.HttpSessionIdListener