Package org.basex.http
Class SessionListener
java.lang.Object
org.basex.http.SessionListener
- All Implemented Interfaces:
EventListener,javax.servlet.http.HttpSessionListener
This class creates and destroys HTTP sessions.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.servlet.http.HttpSessionReturns the session with the specified id.static TokenListids()Returns the ids of all connected sessions.voidsessionCreated(javax.servlet.http.HttpSessionEvent event) voidsessionDestroyed(javax.servlet.http.HttpSessionEvent event)
-
Constructor Details
-
SessionListener
public SessionListener()
-
-
Method Details
-
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent event) - Specified by:
sessionCreatedin interfacejavax.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event) - Specified by:
sessionDestroyedin interfacejavax.servlet.http.HttpSessionListener
-
ids
Returns the ids of all connected sessions.- Returns:
- client ids
-
get
Returns the session with the specified id.- Parameters:
id- session id- Returns:
- session
-