|
EAF 6.4 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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. |
javax.servlet.http.HttpSession |
getHttpSession()
|
com.lutris.appserver.server.session.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.
SessionException
- If the user cannot be set.SessionManager.getSessionKeys(User)
public void clearUser() throws SessionException
SessionManager
.
SessionException
- If the user cannot be cleared.public java.lang.String getSessionKey()
public SessionManager getSessionManager()
public com.lutris.appserver.server.session.SessionData getSessionData()
public boolean isNew()
public javax.servlet.http.HttpSession getHttpSession()
|
EAF 6.4 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |