public interface SessionListener | Modifier and Type | Interface and Description |
|---|---|
static class | SessionListener.SessionDestroyedReason |
| Modifier and Type | Method and Description |
|---|---|
default 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 created |
default void | sessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason) Called when a session is destroyed |
default void | sessionIdChanged(Session session, String oldSessionId) |
default void sessionCreated(Session session, HttpServerExchange exchange)
session - The new sessionexchange - The HttpServerExchange that created the sessiondefault void sessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason)
session - The new sessionexchange - The HttpServerExchange that destroyed the session, or null if the session timed outreason - The reason why the session was expireddefault void attributeUpdated(Session session, String name, Object newValue, Object oldValue)
Copyright © 2020 JBoss by Red Hat. All rights reserved.