Package org.basex.query.func.session
Class ASession
java.lang.Object
org.basex.query.func.session.ASession
This module contains functions for processing global sessions.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessed()Returns the last access time.voidclose()Closes a session.created()Returns the creation time.voiddelete(byte[] key) Removes a session attribute.get(byte[] key) Returns a session attribute.id()Returns the session ID.names()Returns all session attributes.voidUpdates a session attribute.
-
Constructor Details
-
ASession
public ASession(javax.servlet.http.HttpSession session) Constructor.- Parameters:
session- HTTP session
-
-
Method Details
-
id
Returns the session ID.- Returns:
- session id
-
created
Returns the creation time.- Returns:
- creation time
-
accessed
Returns the last access time.- Returns:
- creation time
-
names
Returns all session attributes.- Returns:
- session attributes
-
get
Returns a session attribute.- Parameters:
key- key to be requested- Returns:
- session attribute or
null
-
set
Updates a session attribute.- Parameters:
name- name of the attributevalue- value to be stored
-
delete
public void delete(byte[] key) Removes a session attribute.- Parameters:
key- key of the attribute
-
close
public void close()Closes a session.
-