|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.web.DefaultSessionManager
public class DefaultSessionManager
Title: Session Manager
Description:
Copyright: Copyright (c) 2002
Company: Plumtree
Constructor Summary | |
---|---|
DefaultSessionManager(java.lang.String keyName)
Default constructor. |
Method Summary | |
---|---|
void |
Abandon()
Abandon this session at the end of this request so that the Java/.NET session can be reclaimed by the server. |
void |
Clear()
Remove all the elements in this session manager. |
boolean |
ContainsSubSession(java.lang.String key)
Check if a subsession is already in the subsession table (i.e. |
java.lang.Object |
GetAttribute(java.lang.String key)
Get an Attribute from this SessionManager. |
IXPEnumerator |
GetKeys()
An IXPEnumertor of all the keys contained in the session manager. |
int |
GetMaxCount()
Get the max number of objects that can be placed on this session. |
int |
GetMaxInactiveInterval()
Get the max inactive interval until this session should be timed out. |
java.lang.Object |
GetMostRecentlyAccessedObject()
Get the most recently accessed Object (by set or get). |
ISessionManager |
GetSubSession(java.lang.String key)
Get a sub session. |
long |
GetTimeStamp(java.lang.String key)
Get the timestamp of an Attribute from this SessionManager. |
boolean |
IsAbandoned()
Check if the underlying Java/.NET session will be abandoned at the end of this request. |
boolean |
IsNewSession()
Check if the session is created from the factory. |
void |
RemoveAttribute(java.lang.String key)
Remove an attribute from the session manager. |
void |
RemoveSubSession(java.lang.String subSessionName)
Remove a subspace from this session. |
java.lang.String |
SetAttribute(java.lang.Object value)
Place an object on the session. |
void |
SetAttribute(java.lang.String key,
java.lang.Object value)
Place an object on the session based on a key. |
void |
SetAttribute(java.lang.String key,
java.lang.Object value,
ICacheUpdateListener callback,
int timeout)
Set an attribute with a call back. |
void |
SetMaxCount(int maxCount)
Set the max number of objects that can be placed into this session. |
void |
SetMaxInactiveInterval(int timeOut)
Have this session manager timeout objects after x number of seconds. |
void |
SetNewSession(boolean flag)
Set if the session is new. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSessionManager(java.lang.String keyName)
keyName
- Method Detail |
---|
public void Clear()
Clear
in interface ISessionManager
public boolean ContainsSubSession(java.lang.String key)
ContainsSubSession
in interface ISessionManager
key
- The key which the subsession is under.
public java.lang.Object GetAttribute(java.lang.String key)
GetAttribute
in interface ISessionManager
key
- Key to look up the value to return.
SetAttribute
public IXPEnumerator GetKeys()
GetKeys
in interface ISessionManager
public int GetMaxCount()
GetMaxCount
in interface ISessionManager
SetMaxCount
public int GetMaxInactiveInterval()
GetMaxInactiveInterval
in interface ISessionManager
SetMaxInactiveInterval
public java.lang.Object GetMostRecentlyAccessedObject()
GetMostRecentlyAccessedObject
in interface ISessionManager
public ISessionManager GetSubSession(java.lang.String key)
GetSubSession
in interface ISessionManager
key
- The key which the subsession is under.
public long GetTimeStamp(java.lang.String key)
GetTimeStamp
in interface ISessionManager
key
- Key to look up the value to return.
public boolean IsNewSession()
IsNewSession
in interface ISessionManager
public void RemoveAttribute(java.lang.String key)
RemoveAttribute
in interface ISessionManager
key
- The key to remove.public void RemoveSubSession(java.lang.String subSessionName)
RemoveSubSession
in interface ISessionManager
subSessionName
- public java.lang.String SetAttribute(java.lang.Object value)
SetAttribute
in interface ISessionManager
value
- The value interested in storing on the session.
public void SetAttribute(java.lang.String key, java.lang.Object value)
SetAttribute
in interface ISessionManager
key
- The key to place the value under.value
- The value interested in storing on the session.public void SetAttribute(java.lang.String key, java.lang.Object value, ICacheUpdateListener callback, int timeout)
SetAttribute
in interface ISessionManager
key
- Key on the sessionvalue
- The value to place on the session.callback
- Object to call back when time has elapsed.timeout
- Time in seconds before calling the callback.public void SetMaxCount(int maxCount)
SetMaxCount
in interface ISessionManager
maxCount
- The max number of objects this session can hold.public void SetMaxInactiveInterval(int timeOut)
SetMaxInactiveInterval
in interface ISessionManager
timeOut
- GetMaxInactiveInterval
public void SetNewSession(boolean flag)
flag
- if the session was previously created.public void Abandon()
Abandon
in interface ISessionManager
public boolean IsAbandoned()
IsAbandoned
in interface ISessionManager
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |