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 Details

    • SessionEventHttpSessionListenerAdapter

      public SessionEventHttpSessionListenerAdapter(List<jakarta.servlet.http.HttpSessionListener> listeners)
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(AbstractSessionEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<AbstractSessionEvent>
    • setServletContext

      public void setServletContext(jakarta.servlet.ServletContext servletContext)
      Specified by:
      setServletContext in interface org.springframework.web.context.ServletContextAware