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
A
.
SessionListener that handles notification so that they can be passed to the consumers registered to listen for
destruction of HttpScope instances of
invalid reference
Scope.SESSION
- Author:
- Darran Lofthouse
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.undertow.server.session.SessionListener
io.undertow.server.session.SessionListener.SessionDestroyedReason -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(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 Details
-
registerListener
-
sessionIdChanged
- 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
-
sessionCreated
public void sessionCreated(io.undertow.server.session.Session session, io.undertow.server.HttpServerExchange exchange) - Specified by:
sessionCreatedin interfaceio.undertow.server.session.SessionListener
-
attributeAdded
- 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
-
attributeRemoved
public void attributeRemoved(io.undertow.server.session.Session session, String name, Object oldValue) - Specified by:
attributeRemovedin interfaceio.undertow.server.session.SessionListener
-