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, javax.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)Called when a session is createdvoidsessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason)Called when a session is destroyedvoidsessionIdChanged(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, javax.servlet.ServletContext servletContext)
-
-
Method Detail
-
sessionCreated
public void sessionCreated(Session session, HttpServerExchange exchange)
Description copied from interface:SessionListenerCalled when a session is created- Specified by:
sessionCreatedin interfaceSessionListener- Parameters:
session- The new sessionexchange- TheHttpServerExchangethat created the session
-
sessionDestroyed
public void sessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason)
Description copied from interface:SessionListenerCalled when a session is destroyed- Specified by:
sessionDestroyedin interfaceSessionListener- Parameters:
session- The new sessionexchange- TheHttpServerExchangethat destroyed the session, or null if the session timed outreason- The reason why the session was expired
-
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
-
-