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
  • Method Details

    • 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:
      sessionIdChanged in interface io.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:
      sessionDestroyed in interface io.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:
      sessionCreated in interface io.undertow.server.session.SessionListener
    • attributeAdded

      public void attributeAdded(io.undertow.server.session.Session session, String name, Object value)
      Specified by:
      attributeAdded in interface io.undertow.server.session.SessionListener
    • attributeUpdated

      public void attributeUpdated(io.undertow.server.session.Session session, String name, Object newValue, Object oldValue)
      Specified by:
      attributeUpdated in interface io.undertow.server.session.SessionListener
    • attributeRemoved

      public void attributeRemoved(io.undertow.server.session.Session session, String name, Object oldValue)
      Specified by:
      attributeRemoved in interface io.undertow.server.session.SessionListener