|
EAF 7.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
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 |
setHttpSession(javax.servlet.http.HttpSession httpSession)
|
void |
setUser(User user)
Set the user associated with this session. |
Method Detail |
---|
User getUser()
null
if the
session is not associated with a User
objects.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)
void clearUser() throws SessionException
SessionManager
.
SessionException
- If the user cannot be cleared.java.lang.String getSessionKey()
SessionManager getSessionManager()
com.lutris.appserver.server.session.SessionData getSessionData()
boolean isNew()
javax.servlet.http.HttpSession getHttpSession()
void setHttpSession(javax.servlet.http.HttpSession httpSession)
|
EAF 7.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |