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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListeners
(ListenerHandler handler) Add listenersvoid
attributeAdded
(jakarta.servlet.http.HttpSessionBindingEvent event) void
attributeAdded
(jakarta.servlet.ServletContextAttributeEvent event) void
attributeAdded
(jakarta.servlet.ServletRequestAttributeEvent srae) void
attributeRemoved
(jakarta.servlet.http.HttpSessionBindingEvent event) void
attributeRemoved
(jakarta.servlet.ServletContextAttributeEvent event) void
attributeRemoved
(jakarta.servlet.ServletRequestAttributeEvent srae) void
attributeReplaced
(jakarta.servlet.http.HttpSessionBindingEvent event) void
attributeReplaced
(jakarta.servlet.ServletContextAttributeEvent event) void
attributeReplaced
(jakarta.servlet.ServletRequestAttributeEvent srae) void
cleanup()
void
static void
contextDestroyed
(ListenerInfo info, jakarta.servlet.ServletContextListener listener, jakarta.servlet.ServletContextEvent event) void
static void
contextInitialized
(ListenerInfo info, jakarta.servlet.ServletContextListener listener, jakarta.servlet.ServletContextEvent event) void
getRuntimeInfo
(org.osgi.service.servlet.runtime.dto.ServletContextDTO dto, List<org.osgi.service.servlet.runtime.dto.FailedListenerDTO> failedListenerDTOs) Get the listener handler for the listener infovoid
removeListeners
(ListenerInfo info) Remove listenersvoid
requestDestroyed
(jakarta.servlet.ServletRequestEvent sre) void
requestInitialized
(jakarta.servlet.ServletRequestEvent sre) void
sessionCreated
(jakarta.servlet.http.HttpSessionEvent se) void
sessionDestroyed
(jakarta.servlet.http.HttpSessionEvent se) void
sessionIdChanged
(jakarta.servlet.http.HttpSessionEvent event, String oldSessionId)
-
Constructor Details
-
EventListenerRegistry
public EventListenerRegistry()
-
-
Method Details
-
cleanup
public void cleanup() -
addListeners
Add listeners- Parameters:
handler
- The listener handler
-
removeListeners
Remove listeners- Parameters:
info
-
-
getServletContextListener
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:
attributeReplaced
in interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.http.HttpSessionBindingEvent event) - Specified by:
attributeRemoved
in interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.http.HttpSessionBindingEvent event) - Specified by:
attributeAdded
in interfacejakarta.servlet.http.HttpSessionAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplaced
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemoved
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeAdded
in interfacejakarta.servlet.ServletContextAttributeListener
-
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionCreated
in interfacejakarta.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionDestroyed
in interfacejakarta.servlet.http.HttpSessionListener
-
requestDestroyed
public void requestDestroyed(jakarta.servlet.ServletRequestEvent sre) - Specified by:
requestDestroyed
in interfacejakarta.servlet.ServletRequestListener
-
requestInitialized
public void requestInitialized(jakarta.servlet.ServletRequestEvent sre) - Specified by:
requestInitialized
in interfacejakarta.servlet.ServletRequestListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletRequestAttributeEvent srae) - Specified by:
attributeAdded
in interfacejakarta.servlet.ServletRequestAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletRequestAttributeEvent srae) - Specified by:
attributeRemoved
in interfacejakarta.servlet.ServletRequestAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletRequestAttributeEvent srae) - Specified by:
attributeReplaced
in interfacejakarta.servlet.ServletRequestAttributeListener
-
sessionIdChanged
public void sessionIdChanged(@NotNull jakarta.servlet.http.HttpSessionEvent event, @NotNull String oldSessionId) - Specified by:
sessionIdChanged
in 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 ListenerInfo info, @NotNull jakarta.servlet.ServletContextListener listener, @NotNull jakarta.servlet.ServletContextEvent event) -
contextDestroyed
public static void contextDestroyed(@NotNull ListenerInfo info, @NotNull jakarta.servlet.ServletContextListener listener, @NotNull jakarta.servlet.ServletContextEvent event)
-