Package jenkins.util

Class HttpSessionListener

java.lang.Object
jenkins.util.HttpSessionListener
All Implemented Interfaces:
ExtensionPoint, jakarta.servlet.http.HttpSessionListener, EventListener, javax.servlet.http.HttpSessionListener

public abstract class HttpSessionListener extends Object implements ExtensionPoint, jakarta.servlet.http.HttpSessionListener, javax.servlet.http.HttpSessionListener
HttpSessionListener ExtensionPoint for Jenkins.

Allows plugins to listen to HttpSession lifecycle events.

Since:
2.2
Author:
tom.fennelly@gmail.com
  • Constructor Details

    • HttpSessionListener

      public HttpSessionListener()
  • Method Details

    • all

      public static ExtensionList<HttpSessionListener> all()
      Get all of the HttpSessionListener implementations.
      Returns:
      All of the HttpSessionListener implementations.
    • sessionCreated

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

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

      @Deprecated public void sessionCreated(javax.servlet.http.HttpSessionEvent httpSessionEvent)
      Specified by:
      sessionCreated in interface javax.servlet.http.HttpSessionListener
    • sessionDestroyed

      @Deprecated public void sessionDestroyed(javax.servlet.http.HttpSessionEvent httpSessionEvent)
      Specified by:
      sessionDestroyed in interface javax.servlet.http.HttpSessionListener