Class HttpSessionEventPublisher
- java.lang.Object
- 
- org.springframework.security.web.session.HttpSessionEventPublisher
 
- 
- All Implemented Interfaces:
- java.util.EventListener,- javax.servlet.http.HttpSessionIdListener,- javax.servlet.http.HttpSessionListener
 
 public class HttpSessionEventPublisher extends java.lang.Object implements javax.servlet.http.HttpSessionListener, javax.servlet.http.HttpSessionIdListenerDeclared in web.xml as<listener> <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> </listener>PublishesHttpSessionApplicationEvents to the Spring Root WebApplicationContext. Maps javax.servlet.http.HttpSessionListener.sessionCreated() toHttpSessionCreatedEvent. Maps javax.servlet.http.HttpSessionListener.sessionDestroyed() toHttpSessionDestroyedEvent.
- 
- 
Constructor SummaryConstructors Constructor Description HttpSessionEventPublisher()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsessionCreated(javax.servlet.http.HttpSessionEvent event)Handles the HttpSessionEvent by publishing aHttpSessionCreatedEventto the application appContext.voidsessionDestroyed(javax.servlet.http.HttpSessionEvent event)Handles the HttpSessionEvent by publishing aHttpSessionDestroyedEventto the application appContext.voidsessionIdChanged(javax.servlet.http.HttpSessionEvent event, java.lang.String oldSessionId)
 
- 
- 
- 
Method Detail- 
sessionCreatedpublic void sessionCreated(javax.servlet.http.HttpSessionEvent event) Handles the HttpSessionEvent by publishing aHttpSessionCreatedEventto the application appContext.- Specified by:
- sessionCreatedin interface- javax.servlet.http.HttpSessionListener
- Parameters:
- event- HttpSessionEvent passed in by the container
 
 - 
sessionDestroyedpublic void sessionDestroyed(javax.servlet.http.HttpSessionEvent event) Handles the HttpSessionEvent by publishing aHttpSessionDestroyedEventto the application appContext.- Specified by:
- sessionDestroyedin interface- javax.servlet.http.HttpSessionListener
- Parameters:
- event- The HttpSessionEvent pass in by the container
 
 - 
sessionIdChangedpublic void sessionIdChanged(javax.servlet.http.HttpSessionEvent event, java.lang.String oldSessionId)- Specified by:
- sessionIdChangedin interface- javax.servlet.http.HttpSessionIdListener
 
 
- 
 
-