Class ScopeSessionListener
- java.lang.Object
-
- org.wildfly.elytron.web.undertow.server.ScopeSessionListener
-
- All Implemented Interfaces:
io.undertow.server.session.SessionListener
public class ScopeSessionListener extends Object implements io.undertow.server.session.SessionListener
ASessionListenerthat handles notification so that they can be passed to the consumers registered to listen for destruction ofHttpScopeinstances ofScope.SESSION.- Author:
- Darran Lofthouse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScopeSessionListener.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeAdded(io.undertow.server.session.Session session, String name, Object value)voidattributeRemoved(io.undertow.server.session.Session session, String name, Object oldValue)voidattributeUpdated(io.undertow.server.session.Session session, String name, Object newValue, Object oldValue)static ScopeSessionListener.Builderbuilder()voidregisterListener(String sessionId, Consumer<org.wildfly.security.http.HttpScopeNotification> notificationConsumer)voidsessionCreated(io.undertow.server.session.Session session, io.undertow.server.HttpServerExchange exchange)voidsessionDestroyed(io.undertow.server.session.Session session, io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionListener.SessionDestroyedReason reason)voidsessionIdChanged(io.undertow.server.session.Session session, String oldSessionId)
-
-
-
Method Detail
-
registerListener
public void registerListener(String sessionId, Consumer<org.wildfly.security.http.HttpScopeNotification> notificationConsumer)
-
sessionIdChanged
public void sessionIdChanged(io.undertow.server.session.Session session, String oldSessionId)- Specified by:
sessionIdChangedin interfaceio.undertow.server.session.SessionListener
-
sessionDestroyed
public void sessionDestroyed(io.undertow.server.session.Session session, io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionListener.SessionDestroyedReason reason)- Specified by:
sessionDestroyedin interfaceio.undertow.server.session.SessionListener
-
builder
public static ScopeSessionListener.Builder builder()
-
sessionCreated
public void sessionCreated(io.undertow.server.session.Session session, io.undertow.server.HttpServerExchange exchange)- Specified by:
sessionCreatedin interfaceio.undertow.server.session.SessionListener
-
attributeAdded
public void attributeAdded(io.undertow.server.session.Session session, String name, Object value)- Specified by:
attributeAddedin interfaceio.undertow.server.session.SessionListener
-
attributeUpdated
public void attributeUpdated(io.undertow.server.session.Session session, String name, Object newValue, Object oldValue)- Specified by:
attributeUpdatedin interfaceio.undertow.server.session.SessionListener
-
-