Package io.undertow.server.session
Interface SessionListener
public interface SessionListener
A listener for session events.
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault voidattributeAdded(Session session, String name, Object value) default voidattributeRemoved(Session session, String name, Object oldValue) default voidattributeUpdated(Session session, String name, Object newValue, Object oldValue) default voidsessionCreated(Session session, HttpServerExchange exchange) Called when a session is createddefault voidsessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason) Called when a session is destroyeddefault voidsessionIdChanged(Session session, String oldSessionId)
-
Method Details
-
sessionCreated
Called when a session is created- Parameters:
session- The new sessionexchange- TheHttpServerExchangethat created the session
-
sessionDestroyed
default void sessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason) Called when a session is destroyed- Parameters:
session- The new sessionexchange- TheHttpServerExchangethat destroyed the session, or null if the session timed outreason- The reason why the session was expired
-
attributeAdded
-
attributeUpdated
-
attributeRemoved
-
sessionIdChanged
-