Class SessionEventHttpSessionListenerAdapter
java.lang.Object
org.springframework.session.web.http.SessionEventHttpSessionListenerAdapter
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationListener<AbstractSessionEvent>,org.springframework.web.context.ServletContextAware
public class SessionEventHttpSessionListenerAdapter
extends Object
implements org.springframework.context.ApplicationListener<AbstractSessionEvent>, org.springframework.web.context.ServletContextAware
Receives
SessionDestroyedEvent and SessionCreatedEvent and translates
them into HttpSessionEvent and submits the HttpSessionEvent to every
registered HttpSessionListener.- Since:
- 1.1
-
Constructor Summary
ConstructorsConstructorDescriptionSessionEventHttpSessionListenerAdapter(List<javax.servlet.http.HttpSessionListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetServletContext(javax.servlet.ServletContext servletContext)
-
Constructor Details
-
SessionEventHttpSessionListenerAdapter
public SessionEventHttpSessionListenerAdapter(List<javax.servlet.http.HttpSessionListener> listeners)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<AbstractSessionEvent>
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContextin interfaceorg.springframework.web.context.ServletContextAware
-