Package io.undertow.servlet.core
Class SessionListenerBridge
- java.lang.Object
-
- io.undertow.servlet.core.SessionListenerBridge
-
- All Implemented Interfaces:
SessionListener
public class SessionListenerBridge extends Object implements SessionListener
Class that bridges between Undertow native session listeners and servlet ones.- Author:
- Stuart Douglas
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.undertow.server.session.SessionListener
SessionListener.SessionDestroyedReason
-
-
Field Summary
Fields Modifier and Type Field Description static StringIO_UNDERTOW
-
Constructor Summary
Constructors Constructor Description SessionListenerBridge(Deployment deployment, ApplicationListeners applicationListeners, jakarta.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeAdded(Session session, String name, Object value)voidattributeRemoved(Session session, String name, Object old)voidattributeUpdated(Session session, String name, Object value, Object old)voidsessionCreated(Session session, HttpServerExchange exchange)voidsessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason)voidsessionIdChanged(Session session, String oldSessionId)
-
-
-
Field Detail
-
IO_UNDERTOW
public static final String IO_UNDERTOW
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SessionListenerBridge
public SessionListenerBridge(Deployment deployment, ApplicationListeners applicationListeners, jakarta.servlet.ServletContext servletContext)
-
-
Method Detail
-
sessionCreated
public void sessionCreated(Session session, HttpServerExchange exchange)
- Specified by:
sessionCreatedin interfaceSessionListener
-
sessionDestroyed
public void sessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason)
- Specified by:
sessionDestroyedin interfaceSessionListener
-
attributeAdded
public void attributeAdded(Session session, String name, Object value)
- Specified by:
attributeAddedin interfaceSessionListener
-
attributeUpdated
public void attributeUpdated(Session session, String name, Object value, Object old)
- Specified by:
attributeUpdatedin interfaceSessionListener
-
attributeRemoved
public void attributeRemoved(Session session, String name, Object old)
- Specified by:
attributeRemovedin interfaceSessionListener
-
sessionIdChanged
public void sessionIdChanged(Session session, String oldSessionId)
- Specified by:
sessionIdChangedin interfaceSessionListener
-
-