public interface SessionListener
Modifier and Type | Interface | Description |
---|---|---|
static class |
SessionListener.SessionDestroyedReason |
Modifier and Type | Method | Description |
---|---|---|
void |
attributeAdded(Session session,
java.lang.String name,
java.lang.Object value) |
|
void |
attributeRemoved(Session session,
java.lang.String name,
java.lang.Object oldValue) |
|
void |
attributeUpdated(Session session,
java.lang.String name,
java.lang.Object newValue,
java.lang.Object oldValue) |
|
void |
sessionCreated(Session session,
HttpServerExchange exchange) |
Called when a session is created
|
void |
sessionDestroyed(Session session,
HttpServerExchange exchange,
SessionListener.SessionDestroyedReason reason) |
Called when a session is destroyed
|
void |
sessionIdChanged(Session session,
java.lang.String oldSessionId) |
void sessionCreated(Session session, HttpServerExchange exchange)
session
- The new sessionexchange
- The HttpServerExchange
that created the sessionvoid 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 expiredvoid attributeAdded(Session session, java.lang.String name, java.lang.Object value)
void attributeUpdated(Session session, java.lang.String name, java.lang.Object newValue, java.lang.Object oldValue)
void attributeRemoved(Session session, java.lang.String name, java.lang.Object oldValue)
void sessionIdChanged(Session session, java.lang.String oldSessionId)
Copyright © 2018. All rights reserved.