| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 ISessionManagerpublic boolean ContainsSubSession(java.lang.String key)
ContainsSubSession in interface ISessionManagerkey - The key which the subsession is under.
public java.lang.Object GetAttribute(java.lang.String key)
GetAttribute in interface ISessionManagerkey - Key to look up the value to return.
SetAttributepublic IXPEnumerator GetKeys()
GetKeys in interface ISessionManagerpublic int GetMaxCount()
GetMaxCount in interface ISessionManagerSetMaxCountpublic int GetMaxInactiveInterval()
GetMaxInactiveInterval in interface ISessionManagerSetMaxInactiveIntervalpublic java.lang.Object GetMostRecentlyAccessedObject()
GetMostRecentlyAccessedObject in interface ISessionManagerpublic ISessionManager GetSubSession(java.lang.String key)
GetSubSession in interface ISessionManagerkey - The key which the subsession is under.
public long GetTimeStamp(java.lang.String key)
GetTimeStamp in interface ISessionManagerkey - Key to look up the value to return.
public boolean IsNewSession()
IsNewSession in interface ISessionManagerpublic void RemoveAttribute(java.lang.String key)
RemoveAttribute in interface ISessionManagerkey - The key to remove.public void RemoveSubSession(java.lang.String subSessionName)
RemoveSubSession in interface ISessionManagersubSessionName - public java.lang.String SetAttribute(java.lang.Object value)
SetAttribute in interface ISessionManagervalue - The value interested in storing on the session.
public void SetAttribute(java.lang.String key,
                         java.lang.Object value)
SetAttribute in interface ISessionManagerkey - 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 ISessionManagerkey - 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 ISessionManagermaxCount - The max number of objects this session can hold.public void SetMaxInactiveInterval(int timeOut)
SetMaxInactiveInterval in interface ISessionManagertimeOut - GetMaxInactiveIntervalpublic void SetNewSession(boolean flag)
flag - if the session was previously created.public void Abandon()
Abandon in interface ISessionManagerpublic boolean IsAbandoned()
IsAbandoned in interface ISessionManager
  | 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||