Class EventListenerWrapper
- java.lang.Object
-
- org.apache.felix.http.jakartawrappers.EventListenerWrapper
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionAttributeListener,jakarta.servlet.http.HttpSessionIdListener,jakarta.servlet.http.HttpSessionListener,jakarta.servlet.ServletContextAttributeListener,jakarta.servlet.ServletContextListener,jakarta.servlet.ServletRequestAttributeListener,jakarta.servlet.ServletRequestListener,EventListener
public class EventListenerWrapper extends Object implements jakarta.servlet.http.HttpSessionAttributeListener, jakarta.servlet.http.HttpSessionIdListener, jakarta.servlet.http.HttpSessionListener, jakarta.servlet.ServletContextListener, jakarta.servlet.ServletContextAttributeListener, jakarta.servlet.ServletRequestListener, jakarta.servlet.ServletRequestAttributeListener
Wrapper for all listeners
-
-
Constructor Summary
Constructors Constructor Description EventListenerWrapper(@NotNull EventListener listener, @NotNull Set<String> listenerTypes)Create new wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeAdded(jakarta.servlet.http.HttpSessionBindingEvent event)voidattributeAdded(jakarta.servlet.ServletContextAttributeEvent event)voidattributeAdded(jakarta.servlet.ServletRequestAttributeEvent srae)voidattributeRemoved(jakarta.servlet.http.HttpSessionBindingEvent event)voidattributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)voidattributeRemoved(jakarta.servlet.ServletRequestAttributeEvent srae)voidattributeReplaced(jakarta.servlet.http.HttpSessionBindingEvent event)voidattributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)voidattributeReplaced(jakarta.servlet.ServletRequestAttributeEvent srae)voidcontextDestroyed(jakarta.servlet.ServletContextEvent sce)voidcontextInitialized(jakarta.servlet.ServletContextEvent sce)@NotNull EventListenergetListener()Get the listenervoidrequestDestroyed(jakarta.servlet.ServletRequestEvent sre)voidrequestInitialized(jakarta.servlet.ServletRequestEvent sre)voidsessionCreated(jakarta.servlet.http.HttpSessionEvent se)voidsessionDestroyed(jakarta.servlet.http.HttpSessionEvent se)voidsessionIdChanged(jakarta.servlet.http.HttpSessionEvent event, String oldSessionId)
-
-
-
Constructor Detail
-
EventListenerWrapper
public EventListenerWrapper(@NotNull @NotNull EventListener listener, @NotNull @NotNull Set<String> listenerTypes)Create new wrapper- Parameters:
listener- Wrapped listenerlistenerTypes- Service interfaces
-
-
Method Detail
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletRequestAttributeEvent srae)
- Specified by:
attributeAddedin interfacejakarta.servlet.ServletRequestAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletRequestAttributeEvent srae)
- Specified by:
attributeRemovedin interfacejakarta.servlet.ServletRequestAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletRequestAttributeEvent srae)
- Specified by:
attributeReplacedin interfacejakarta.servlet.ServletRequestAttributeListener
-
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
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeAddedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeRemovedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeReplacedin interfacejakarta.servlet.ServletContextAttributeListener
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
- Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
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
-
sessionIdChanged
public void sessionIdChanged(jakarta.servlet.http.HttpSessionEvent event, String oldSessionId)- Specified by:
sessionIdChangedin interfacejakarta.servlet.http.HttpSessionIdListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.http.HttpSessionBindingEvent event)
- Specified by:
attributeAddedin interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.http.HttpSessionBindingEvent event)
- Specified by:
attributeRemovedin interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.http.HttpSessionBindingEvent event)
- Specified by:
attributeReplacedin interfacejakarta.servlet.http.HttpSessionAttributeListener
-
getListener
@NotNull public @NotNull EventListener getListener()
Get the listener- Returns:
- The listener
-
-