public class SessionListenerBridge extends Object implements SessionListener
SessionListener.SessionDestroyedReason| Modifier and Type | Field and Description |
|---|---|
static String |
IO_UNDERTOW |
| Constructor and Description |
|---|
SessionListenerBridge(Deployment deployment,
ApplicationListeners applicationListeners,
javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeAdded(Session session,
String name,
Object value) |
void |
attributeRemoved(Session session,
String name,
Object old) |
void |
attributeUpdated(Session session,
String name,
Object value,
Object old) |
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) |
public static final String IO_UNDERTOW
public SessionListenerBridge(Deployment deployment, ApplicationListeners applicationListeners, javax.servlet.ServletContext servletContext)
public void sessionCreated(Session session, HttpServerExchange exchange)
SessionListenersessionCreated in interface SessionListenersession - The new sessionexchange - The HttpServerExchange that created the sessionpublic void sessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason)
SessionListenersessionDestroyed in interface SessionListenersession - The new sessionexchange - The HttpServerExchange that destroyed the session, or null if the session timed outreason - The reason why the session was expiredpublic void attributeAdded(Session session, String name, Object value)
attributeAdded in interface SessionListenerpublic void attributeUpdated(Session session, String name, Object value, Object old)
attributeUpdated in interface SessionListenerpublic void attributeRemoved(Session session, String name, Object old)
attributeRemoved in interface SessionListenerpublic void sessionIdChanged(Session session, String oldSessionId)
sessionIdChanged in interface SessionListenerCopyright © 2017 JBoss by Red Hat. All rights reserved.