Package io.undertow.server.session
Interface SessionListener
-
- All Known Implementing Classes:
SessionListenerBridge
public interface SessionListenerA listener for session events.- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSessionListener.SessionDestroyedReason
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidattributeAdded(Session session, String name, Object value)voidattributeRemoved(Session session, String name, Object oldValue)voidattributeUpdated(Session session, String name, Object newValue, Object oldValue)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)
-
-
-
Method Detail
-
sessionCreated
void sessionCreated(Session session, HttpServerExchange exchange)
Called when a session is created- Parameters:
session- The new sessionexchange- TheHttpServerExchangethat created the session
-
sessionDestroyed
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
-
attributeUpdated
void attributeUpdated(Session session, String name, Object newValue, Object oldValue)
-
-