|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.sessionContainerAdapter.ContainerAdapterSession
public class ContainerAdapterSession
Description:
Session object, used to keep the session data
Field Summary | |
---|---|
protected java.lang.String |
SESSION
Name of the session object in the HttpSession |
Constructor Summary | |
---|---|
ContainerAdapterSession()
Default constructor |
|
ContainerAdapterSession(ContainerAdapterSessionManager sessionManager,
javax.servlet.http.HttpSession httpSession)
|
Method Summary | |
---|---|
void |
clearUser()
clears the user object |
javax.servlet.http.HttpSession |
getHttpSession()
|
long |
getMaxIdleTime()
Obtain the maximum idle time for this object. |
SessionData |
getSessionData()
|
java.lang.String |
getSessionKey()
|
com.lutris.appserver.server.session.SessionManager |
getSessionManager()
|
long |
getTimeCreated()
|
long |
getTimeLastUsed()
Obtain the time of last use for this object. |
com.lutris.appserver.server.user.User |
getUser()
|
boolean |
isNew()
|
void |
sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
|
void |
sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
|
void |
setHttpSession(javax.servlet.http.HttpSession httpSession)
|
void |
setMaxIdleTime(int maxIdleTime)
Set the maximum idle time for this object. |
void |
setSessionData(SessionData sessionData)
puts the SessionData into this session |
void |
setSessionManager(com.lutris.appserver.server.session.SessionManager sessionManager)
|
protected void |
setTimeCreated(long cTime)
|
void |
setUser(com.lutris.appserver.server.user.User user)
Sets the user |
java.lang.String |
toString()
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String SESSION
Constructor Detail |
---|
public ContainerAdapterSession()
public ContainerAdapterSession(ContainerAdapterSessionManager sessionManager, javax.servlet.http.HttpSession httpSession)
sessionManager
- SessionManager that is used to create this Session objectsessionKey
- The identifiction of the sessionMethod Detail |
---|
public com.lutris.appserver.server.user.User getUser()
getUser
in interface com.lutris.appserver.server.session.Session
public void setUser(com.lutris.appserver.server.user.User user) throws com.lutris.appserver.server.session.SessionException
setUser
in interface com.lutris.appserver.server.session.Session
user
- - the user object of the session
com.lutris.appserver.server.session.SessionException
public void clearUser() throws com.lutris.appserver.server.session.SessionException
clearUser
in interface com.lutris.appserver.server.session.Session
com.lutris.appserver.server.session.SessionException
public java.lang.String getSessionKey()
getSessionKey
in interface com.lutris.appserver.server.session.Session
public long getTimeCreated()
public long getTimeLastUsed()
protected void setTimeCreated(long cTime)
public long getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTime)
maxIdleTime
- The maximum number of milliseconds this
session may be idle, or zero (or negative) to allow sessions to be idle
indefinetly.public com.lutris.appserver.server.session.SessionManager getSessionManager()
getSessionManager
in interface com.lutris.appserver.server.session.Session
SessionManager
used to create this sessionpublic void setSessionManager(com.lutris.appserver.server.session.SessionManager sessionManager)
public SessionData getSessionData()
getSessionData
in interface com.lutris.appserver.server.session.Session
SessionData
public void setSessionData(SessionData sessionData)
SessionData
into this session
sessionData
- public boolean isNew()
isNew
in interface com.lutris.appserver.server.session.Session
public java.lang.String toString()
toString
in class java.lang.Object
public javax.servlet.http.HttpSession getHttpSession()
getHttpSession
in interface com.lutris.appserver.server.session.Session
public void setHttpSession(javax.servlet.http.HttpSession httpSession)
setHttpSession
in interface com.lutris.appserver.server.session.Session
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
sessionWillPassivate
in interface javax.servlet.http.HttpSessionActivationListener
public void sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
sessionDidActivate
in interface javax.servlet.http.HttpSessionActivationListener
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |