Package de.uplanet.lucy.server.session
Klasse AbstractSession
java.lang.Object
de.uplanet.lucy.server.session.AbstractSession
- Alle implementierten Schnittstellen:
ISession
-
Feldübersicht
Von Schnittstelle geerbte Felder de.uplanet.lucy.server.session.ISession
DEFAULT_TIMEOUT -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddListener(de.uplanet.lucy.server.session.ISessionListener p_listener, boolean p_bWeak) Add a listener for session events.booleancontainsKey(String p_strKey) Test if a certain session variable exists.Get a session variable.Get a session variable or the specified fallback value.longGet the time when this session was created.getId()Get the unique session identifier.Get a reference to the internal collection of session variables.Get the subject that is associated with this session.booleanCheck if the session is logged out.booleanisStale()Check if the session has timed out.keySet()Get a set that contains all session variable names.voidSet a session variable.voidRemove a session variable.voidFor internal use only.abstract voidsetManager(de.uplanet.lucy.server.session.ISessionManager p_manager) Associates this session with a session manager.voidsetSubject(Subject p_subject) abstract voidVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.uplanet.lucy.server.session.ISession
getAuthConfigName, getLastAccessTime, getTimeout, getUser, isAnonymous, isStale, logout, setTimeout, touch
-
Methodendetails
-
setManager
public abstract void setManager(de.uplanet.lucy.server.session.ISessionManager p_manager) Associates this session with a session manager.- Parameter:
p_manager- The manager to set.
-
reset
For internal use only. -
getId
Beschreibung aus Schnittstelle kopiert:ISessionGet the unique session identifier. -
getSubject
Beschreibung aus Schnittstelle kopiert:ISessionGet the subject that is associated with this session.- Angegeben von:
getSubjectin SchnittstelleISession- Gibt zurück:
- The associated subject.
-
setSubject
-
setUser
-
containsKey
Beschreibung aus Schnittstelle kopiert:ISessionTest if a certain session variable exists.- Angegeben von:
containsKeyin SchnittstelleISession- Parameter:
p_strKey- The name of the session variable.
-
keySet
Beschreibung aus Schnittstelle kopiert:ISessionGet a set that contains all session variable names. -
getSessionVars
Get a reference to the internal collection of session variables.- Gibt zurück:
- A reference to the internal collection of session variables.
-
get
Beschreibung aus Schnittstelle kopiert:ISessionGet a session variable. -
get
Beschreibung aus Schnittstelle kopiert:ISessionGet a session variable or the specified fallback value. -
put
Beschreibung aus Schnittstelle kopiert:ISessionSet a session variable. -
remove
Beschreibung aus Schnittstelle kopiert:ISessionRemove a session variable. -
getCreationTime
public long getCreationTime()Beschreibung aus Schnittstelle kopiert:ISessionGet the time when this session was created.- Angegeben von:
getCreationTimein SchnittstelleISession- Gibt zurück:
- The creation time, measured in milliseconds, between the current time and 01-01-1970 00:00:00 UTC.
-
isLoggedOut
public boolean isLoggedOut()Beschreibung aus Schnittstelle kopiert:ISessionCheck if the session is logged out.- Angegeben von:
isLoggedOutin SchnittstelleISession- Gibt zurück:
trueis the session is logged out, orfalseotherwise.
-
isStale
public boolean isStale()Beschreibung aus Schnittstelle kopiert:ISessionCheck if the session has timed out.The natural implementation of this method will return
isStale(System.currentTimeMillis()). -
addListener
public void addListener(de.uplanet.lucy.server.session.ISessionListener p_listener, boolean p_bWeak) Beschreibung aus Schnittstelle kopiert:ISessionAdd a listener for session events.- Angegeben von:
addListenerin SchnittstelleISession- Parameter:
p_listener- The session listener to add.p_bWeak-trueif the listener should be weakly referenced,falseotherwise.
-