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
ConstructorDescriptionSessionEventHttpSessionListenerAdapter
(List<javax.servlet.http.HttpSessionListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setServletContext
(javax.servlet.ServletContext servletContext)
-
Constructor Details
-
SessionEventHttpSessionListenerAdapter
public SessionEventHttpSessionListenerAdapter(List<javax.servlet.http.HttpSessionListener> listeners)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<AbstractSessionEvent>
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
-