public interface SessionListener
Modifier and Type | Interface and Description |
---|---|
static class |
SessionListener.SessionDestroyedReason |
Modifier and Type | Method and Description |
---|---|
void |
attributeAdded(Session session,
String name,
Object value) |
void |
attributeRemoved(Session session,
String name,
Object oldValue) |
void |
attributeUpdated(Session session,
String name,
Object newValue,
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,
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 attributeUpdated(Session session, String name, Object newValue, Object oldValue)
Copyright © 2017 JBoss by Red Hat. All rights reserved.