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<jakarta.servlet.http.HttpSessionListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setServletContext
(jakarta.servlet.ServletContext servletContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
SessionEventHttpSessionListenerAdapter
public SessionEventHttpSessionListenerAdapter(List<jakarta.servlet.http.HttpSessionListener> listeners)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<AbstractSessionEvent>
-
setServletContext
public void setServletContext(jakarta.servlet.ServletContext servletContext) - Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
-