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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) voidcontextInitialized(jakarta.servlet.ServletContextEvent sce) protected abstract ServletListenerdelegate()Returns the delegatevoidrequestDestroyed(jakarta.servlet.ServletRequestEvent sre) voidrequestInitialized(jakarta.servlet.ServletRequestEvent sre) voidsessionCreated(jakarta.servlet.http.HttpSessionEvent se) voidsessionDestroyed(jakarta.servlet.http.HttpSessionEvent se)
-
Constructor Details
-
ForwardingServletListener
public ForwardingServletListener()
-
-
Method Details
-
delegate
Returns the delegate- Returns:
- delegate
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
requestDestroyed
public void requestDestroyed(jakarta.servlet.ServletRequestEvent sre) - Specified by:
requestDestroyedin interfacejakarta.servlet.ServletRequestListener
-
requestInitialized
public void requestInitialized(jakarta.servlet.ServletRequestEvent sre) - Specified by:
requestInitializedin interfacejakarta.servlet.ServletRequestListener
-
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionCreatedin interfacejakarta.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionDestroyedin interfacejakarta.servlet.http.HttpSessionListener
-