|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Internal managed session for the Cams server.
This session object extends the basic Session object. The additional functionality includes the ability to expire, touch, logout and get the Subject of the Session. This object is the primary Session object passed through Cams server.
Session| Method Summary | |
void |
expire()
Expire the session This method is called to expire a session and mark it for deletion by the session manager. |
Subject |
getSubject()
Get the Subject of the Session |
int |
getToken()
Get the Token of the Session |
void |
logout()
Logout the session This method will logout the subject associated with this Session object. |
void |
putAttribute(String namespace,
String name,
Object attribute)
Put an attribute into the session. |
void |
removeAttribute(String namespace,
String name)
Remove a attribute from the session |
void |
touch()
Touch the session This method will modify the LastTouchTime of the session |
| Methods inherited from interface com.cafesoft.cams.session.Session |
getAttribute, getAttributeNames, getAuthenticationMethods, getCreationTime, getId, getLastTouchTime, getNamespaces, getSecurityDomainName, getStatus |
| Methods inherited from interface com.cafesoft.core.util.Recyclable |
recycle |
| Method Detail |
public void expire()
This method is called to expire a session and mark it for deletion by the session manager. In addition, this will modify the Session status to SessionStatus.EXPIRED
SessionStatuspublic void touch()
This method will modify the LastTouchTime of the session
public void logout()
This method will logout the subject associated with this Session object. In addition, the Session status will be changed to SessionStatus.CLOSED.
SessionStatuspublic Subject getSubject()
public int getToken()
public void putAttribute(String namespace,
String name,
Object attribute)
Put an object into the session via a name string and namespace. Used to store objects that are associated with the session. Such as User Profile information.
namespace - a namespace used to distinguish a name (perhaps
used by a particular application), from an identical name
used in another context. If null, then use the "default"
namespace.name - the name of the attributeattribute - The attribute to insert into the session
public void removeAttribute(String namespace,
String name)
namespace - the namespace of the name/attribute pairname - the name string of the value to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||