Class HttpSessionListener23

  • All Implemented Interfaces:
    java.util.EventListener, jakarta.servlet.http.HttpSessionAttributeListener, jakarta.servlet.http.HttpSessionListener, jakarta.servlet.ServletContextAttributeListener, jakarta.servlet.ServletContextListener
    Direct Known Subclasses:
    HttpSessionListener

    public class HttpSessionListener23
    extends java.lang.Object
    implements jakarta.servlet.http.HttpSessionListener, jakarta.servlet.http.HttpSessionAttributeListener, jakarta.servlet.ServletContextAttributeListener, jakarta.servlet.ServletContextListener
    The listener works with Servlet 2.3. For servers that support Servlet 2.4 or later, please use HttpSessionListener instead.

    With this listener, there is no way to detect the modification of the request attributes.

    Since:
    5.0.0
    Author:
    tomyeh
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attributeAdded​(jakarta.servlet.http.HttpSessionBindingEvent evt)  
      void attributeAdded​(jakarta.servlet.ServletContextAttributeEvent evt)  
      void attributeRemoved​(jakarta.servlet.http.HttpSessionBindingEvent evt)  
      void attributeRemoved​(jakarta.servlet.ServletContextAttributeEvent evt)  
      void attributeReplaced​(jakarta.servlet.http.HttpSessionBindingEvent evt)  
      void attributeReplaced​(jakarta.servlet.ServletContextAttributeEvent evt)  
      void contextDestroyed​(jakarta.servlet.ServletContextEvent arg0)  
      void contextInitialized​(jakarta.servlet.ServletContextEvent event)  
      void sessionCreated​(jakarta.servlet.http.HttpSessionEvent evt)  
      void sessionDestroyed​(jakarta.servlet.http.HttpSessionEvent evt)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpSessionListener23

        public HttpSessionListener23()
    • Method Detail

      • sessionCreated

        public void sessionCreated​(jakarta.servlet.http.HttpSessionEvent evt)
        Specified by:
        sessionCreated in interface jakarta.servlet.http.HttpSessionListener
      • sessionDestroyed

        public void sessionDestroyed​(jakarta.servlet.http.HttpSessionEvent evt)
        Specified by:
        sessionDestroyed in interface jakarta.servlet.http.HttpSessionListener
      • attributeAdded

        public void attributeAdded​(jakarta.servlet.http.HttpSessionBindingEvent evt)
        Specified by:
        attributeAdded in interface jakarta.servlet.http.HttpSessionAttributeListener
      • attributeAdded

        public void attributeAdded​(jakarta.servlet.ServletContextAttributeEvent evt)
        Specified by:
        attributeAdded in interface jakarta.servlet.ServletContextAttributeListener
      • attributeRemoved

        public void attributeRemoved​(jakarta.servlet.http.HttpSessionBindingEvent evt)
        Specified by:
        attributeRemoved in interface jakarta.servlet.http.HttpSessionAttributeListener
      • attributeRemoved

        public void attributeRemoved​(jakarta.servlet.ServletContextAttributeEvent evt)
        Specified by:
        attributeRemoved in interface jakarta.servlet.ServletContextAttributeListener
      • attributeReplaced

        public void attributeReplaced​(jakarta.servlet.http.HttpSessionBindingEvent evt)
        Specified by:
        attributeReplaced in interface jakarta.servlet.http.HttpSessionAttributeListener
      • attributeReplaced

        public void attributeReplaced​(jakarta.servlet.ServletContextAttributeEvent evt)
        Specified by:
        attributeReplaced in interface jakarta.servlet.ServletContextAttributeListener
      • contextDestroyed

        public void contextDestroyed​(jakarta.servlet.ServletContextEvent arg0)
        Specified by:
        contextDestroyed in interface jakarta.servlet.ServletContextListener
      • contextInitialized

        public void contextInitialized​(jakarta.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface jakarta.servlet.ServletContextListener