Package io.undertow.servlet.core
Class SessionListenerBridge
java.lang.Object
io.undertow.servlet.core.SessionListenerBridge
- All Implemented Interfaces:
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 -
Constructor Summary
ConstructorsConstructorDescriptionSessionListenerBridge(Deployment deployment, ApplicationListeners applicationListeners, ServletContext servletContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(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 Details
-
IO_UNDERTOW
- See Also:
-
-
Constructor Details
-
SessionListenerBridge
public SessionListenerBridge(Deployment deployment, ApplicationListeners applicationListeners, ServletContext servletContext)
-
-
Method Details
-
sessionCreated
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
- Specified by:
attributeAddedin interfaceSessionListener
-
attributeUpdated
- Specified by:
attributeUpdatedin interfaceSessionListener
-
attributeRemoved
- Specified by:
attributeRemovedin interfaceSessionListener
-
sessionIdChanged
- Specified by:
sessionIdChangedin interfaceSessionListener
-