|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface for the Session object expected by the SessionManager..
Method Summary | |
void |
clearUser()
Remove the user association with this session. |
HttpSession |
getHttpSession()
|
SessionData |
getSessionData()
Obtain the application specific data for this session. |
java.lang.String |
getSessionKey()
Obtain the unique key associated with this session. |
SessionManager |
getSessionManager()
Obtain the session manager associated with this session. |
User |
getUser()
Obtain the user associated with this session. |
boolean |
isNew()
Returns true if the session is new. |
void |
setUser(User user)
Set the user associated with this session. |
Method Detail |
public User getUser()
null
if the
session is not associated with a User
objects.public void setUser(User user) throws SessionException
SessionManager
.
If it is neccessary to prevent a user from logging on multiple times,
this can be accomplished by synchronizing on the
Sessionmanager
object and enquiring about the number of
users associated with a session. It is then possible to delete other
sessions before adding a new session.
user
- The user object to associate with the session.SessionManager.getSessionKeys(User)
public void clearUser() throws SessionException
SessionManager
.public java.lang.String getSessionKey()
public SessionManager getSessionManager()
public SessionData getSessionData()
public boolean isNew()
public HttpSession getHttpSession()
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |