Class SessionListener

java.lang.Object
org.basex.http.SessionListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionListener

public final class SessionListener extends Object implements javax.servlet.http.HttpSessionListener
This class creates and destroys HTTP sessions.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • SessionListener

      public SessionListener()
  • Method Details

    • sessionCreated

      public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
      Specified by:
      sessionCreated in interface javax.servlet.http.HttpSessionListener
    • sessionDestroyed

      public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
      Specified by:
      sessionDestroyed in interface javax.servlet.http.HttpSessionListener
    • ids

      public static TokenList ids()
      Returns the ids of all connected sessions.
      Returns:
      client ids
    • get

      public static javax.servlet.http.HttpSession get(String id)
      Returns the session with the specified id.
      Parameters:
      id - session id
      Returns:
      session