|
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 StandardSessionManager.
Method Summary | |
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,
setUser |
Method Detail |
public void touch()
public long getTimeCreated()
public long getTimeLastUsed()
public long getTimeExpires()
public void setTimeExpires(long timeExpires)
timeLastUsed
- The time of expiry since epoch.public long getMaxIdleTime()
public 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.public long getMaxNoUserIdleTime()
User
object
is not associated with the session. Zero (or negative) indicates that
sessions may be idle indefinetly.public 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.public HttpSession getHttpSession()
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |