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,
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, ServletContext servletContext)
public void sessionCreated(Session session, HttpServerExchange exchange)
SessionListener
sessionCreated
in interface SessionListener
session
- The new sessionexchange
- The HttpServerExchange
that created the sessionpublic void sessionDestroyed(Session session, HttpServerExchange exchange, SessionListener.SessionDestroyedReason reason)
SessionListener
sessionDestroyed
in interface SessionListener
session
- 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 SessionListener
public void attributeUpdated(Session session, String name, Object value, Object old)
attributeUpdated
in interface SessionListener
public void attributeRemoved(Session session, String name, Object old)
attributeRemoved
in interface SessionListener
public void sessionIdChanged(Session session, String oldSessionId)
sessionIdChanged
in interface SessionListener
Copyright © 2017 JBoss by Red Hat. All rights reserved.