Class ForwardingServletListener

java.lang.Object
org.jboss.weld.servlet.api.helpers.ForwardingServletListener
All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener, jakarta.servlet.ServletContextListener, jakarta.servlet.ServletRequestListener, EventListener, ServletListener

public abstract class ForwardingServletListener extends Object implements ServletListener
An implementation of ServletListener which forwards all its method calls to another ServletListener Subclasses should override one or more methods to modify the behavior of the backing ServletListener as desired per the decorator pattern.
  • Constructor Details

    • ForwardingServletListener

      public ForwardingServletListener()
  • Method Details

    • delegate

      protected abstract ServletListener delegate()
      Returns the delegate
      Returns:
      delegate
    • contextDestroyed

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

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • requestDestroyed

      public void requestDestroyed(jakarta.servlet.ServletRequestEvent sre)
      Specified by:
      requestDestroyed in interface jakarta.servlet.ServletRequestListener
    • requestInitialized

      public void requestInitialized(jakarta.servlet.ServletRequestEvent sre)
      Specified by:
      requestInitialized in interface jakarta.servlet.ServletRequestListener
    • sessionCreated

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

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