|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for session classes
Nested Class Summary | |
static class |
ISession.DefaultSession
|
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String key)
This method is used to retrieve data which is stored for this session instance. |
long |
getCreatedTime()
Returns the created time when this session was instantiated. |
long |
getLastAccessTime()
Returns the time when this session was last accessed. |
int |
getSessionID()
Returns the ID for this session instance. |
UserInfo |
getUserInfo()
Returns the UserInfo corresponding to this session. |
boolean |
isValid()
This method is used to check if the session is valid. |
void |
setAttribute(java.lang.String key,
java.lang.Object attribute)
This method is used to store session specific data. |
void |
updateLastAccessTime()
Updates the time when the session was last accessed. |
Method Detail |
public int getSessionID()
public UserInfo getUserInfo()
public long getCreatedTime()
public long getLastAccessTime()
public void updateLastAccessTime()
public boolean isValid()
public java.lang.Object getAttribute(java.lang.String key)
key
- the key used to identify specific data.
public void setAttribute(java.lang.String key, java.lang.Object attribute)
key
- The key used to identify the data.attribute
- The data to be stored.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |