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 void
attributeAdded
(Session session, String name, Object value) default void
attributeRemoved
(Session session, String name, Object oldValue) default void
attributeUpdated
(Session session, String name, Object newValue, Object oldValue) default void
sessionCreated
(Session session, HttpServerExchange exchange) Called when a session is createddefault void
sessionDestroyed
(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason) Called when a session is destroyeddefault void
sessionIdChanged
(Session session, String oldSessionId)
-
Method Details
-
sessionCreated
Called when a session is created- Parameters:
session
- The new sessionexchange
- TheHttpServerExchange
that 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
- TheHttpServerExchange
that destroyed the session, or null if the session timed outreason
- The reason why the session was expired
-
attributeAdded
-
attributeUpdated
-
attributeRemoved
-
sessionIdChanged
-