Class EventListenerRegistry
- java.lang.Object
-
- org.apache.felix.http.base.internal.registry.EventListenerRegistry
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionAttributeListener,jakarta.servlet.http.HttpSessionIdListener,jakarta.servlet.http.HttpSessionListener,jakarta.servlet.ServletContextAttributeListener,jakarta.servlet.ServletRequestAttributeListener,jakarta.servlet.ServletRequestListener,EventListener
public final class EventListenerRegistry extends Object implements jakarta.servlet.http.HttpSessionListener, jakarta.servlet.http.HttpSessionAttributeListener, jakarta.servlet.http.HttpSessionIdListener, jakarta.servlet.ServletContextAttributeListener, jakarta.servlet.ServletRequestListener, jakarta.servlet.ServletRequestAttributeListener
Per context event listener registry.
-
-
Constructor Summary
Constructors Constructor Description EventListenerRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListeners(@NotNull ListenerHandler handler)Add listenersvoidattributeAdded(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)voidcleanup()voidcontextDestroyed()static voidcontextDestroyed(@NotNull ListenerInfo info, @NotNull jakarta.servlet.ServletContextListener listener, @NotNull jakarta.servlet.ServletContextEvent event)voidcontextInitialized()static voidcontextInitialized(@NotNull ListenerInfo info, @NotNull jakarta.servlet.ServletContextListener listener, @NotNull jakarta.servlet.ServletContextEvent event)voidgetRuntimeInfo(org.osgi.service.servlet.runtime.dto.ServletContextDTO dto, List<org.osgi.service.servlet.runtime.dto.FailedListenerDTO> failedListenerDTOs)@Nullable ListenerHandlergetServletContextListener(@NotNull ListenerInfo info)Get the listener handler for the listener infovoidremoveListeners(@NotNull ListenerInfo info)Remove listenersvoidrequestDestroyed(jakarta.servlet.ServletRequestEvent sre)voidrequestInitialized(jakarta.servlet.ServletRequestEvent sre)voidsessionCreated(jakarta.servlet.http.HttpSessionEvent se)voidsessionDestroyed(jakarta.servlet.http.HttpSessionEvent se)voidsessionIdChanged(@NotNull jakarta.servlet.http.HttpSessionEvent event, @NotNull String oldSessionId)
-
-
-
Method Detail
-
cleanup
public void cleanup()
-
addListeners
public void addListeners(@NotNull @NotNull ListenerHandler handler)Add listeners- Parameters:
listener- handler
-
removeListeners
public void removeListeners(@NotNull @NotNull ListenerInfo info)Remove listeners- Parameters:
info-
-
getServletContextListener
@Nullable public @Nullable ListenerHandler getServletContextListener(@NotNull @NotNull ListenerInfo info)
Get the listener handler for the listener info- Parameters:
info- The listener info- Returns:
- The handler or
null.
-
contextInitialized
public void contextInitialized()
-
contextDestroyed
public void contextDestroyed()
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.http.HttpSessionBindingEvent event)
- Specified by:
attributeReplacedin interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.http.HttpSessionBindingEvent event)
- Specified by:
attributeRemovedin interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.http.HttpSessionBindingEvent event)
- Specified by:
attributeAddedin interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeReplacedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeRemovedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeAddedin interfacejakarta.servlet.ServletContextAttributeListener
-
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
-
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.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
-
sessionIdChanged
public void sessionIdChanged(@NotNull @NotNull jakarta.servlet.http.HttpSessionEvent event, @NotNull @NotNull String oldSessionId)- Specified by:
sessionIdChangedin interfacejakarta.servlet.http.HttpSessionIdListener- See Also:
HttpSessionIdListener.sessionIdChanged(jakarta.servlet.http.HttpSessionEvent, java.lang.String)
-
getRuntimeInfo
public void getRuntimeInfo(org.osgi.service.servlet.runtime.dto.ServletContextDTO dto, List<org.osgi.service.servlet.runtime.dto.FailedListenerDTO> failedListenerDTOs)
-
contextInitialized
public static void contextInitialized(@NotNull @NotNull ListenerInfo info, @NotNull @NotNull jakarta.servlet.ServletContextListener listener, @NotNull @NotNull jakarta.servlet.ServletContextEvent event)
-
contextDestroyed
public static void contextDestroyed(@NotNull @NotNull ListenerInfo info, @NotNull @NotNull jakarta.servlet.ServletContextListener listener, @NotNull @NotNull jakarta.servlet.ServletContextEvent event)
-
-