|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StandardSession
Defines the interface for the Session object expected by the StandardSessionManager.
Method Summary | |
---|---|
javax.servlet.http.HttpSession |
getHttpSession()
Expose the HttpSession interface |
long |
getMaxIdleTime()
Obtain the maximum idle time for this object. |
long |
getMaxNoUserIdleTime()
Obtain the maximum idle time when a User object
is not associated with the session. |
long |
getTimeCreated()
Obtain the creation time for this object. |
long |
getTimeExpires()
Obtain the time of expiry for this object. |
long |
getTimeLastUsed()
Obtain the time of last use for this object. |
void |
setMaxIdleTime(long maxIdleTime)
Set the maximum idle time for this object. |
void |
setMaxNoUserIdleTime(long maxIdleTime)
set the maximum idle time when a User object
is not associated with the session. |
void |
setTimeExpires(long timeExpires)
Set the time of expiry for this object. |
void |
touch()
Set the "last used" timestamp to the current time, resetting the idle period. |
Methods inherited from interface com.lutris.appserver.server.session.Session |
---|
clearUser, getSessionData, getSessionKey, getSessionManager, getUser, isNew, setHttpSession, setUser |
Method Detail |
---|
void touch()
long getTimeCreated()
long getTimeLastUsed()
long getTimeExpires()
void setTimeExpires(long timeExpires)
timeLastUsed
- The time of expiry since epoch.long getMaxIdleTime()
void setMaxIdleTime(long maxIdleTime)
maxIdleTime
- The maximum number of milliseconds this
session may be idle, or zero (or negative) to allow sessions to be idle
indefinetly.long getMaxNoUserIdleTime()
User
object
is not associated with the session. Zero (or negative) indicates that
sessions may be idle indefinetly.
void setMaxNoUserIdleTime(long maxIdleTime)
User
object
is not associated with the session. Set this to zero (or negative) to
disable idle checking.
maxIdleTime
- The maximum number of milliseconds this
session may be idle.javax.servlet.http.HttpSession getHttpSession()
getHttpSession
in interface Session
|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |