Package org.basex.http
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-23, BSD License, Christian Gruen
-
-
Constructor Summary
Constructors Constructor Description SessionListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.servlet.http.HttpSessionget(String id)Returns 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)
-
-
-
Method Detail
-
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
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
-
-