| com.lutris.appserver.server.sessionEnhydra.StandardSession
All known Subclasses: com.lutris.appserver.server.sessionEnhydra.BasicSession,
StandardSession | public interface StandardSession extends Session(Code) | | Defines the interface for the Session object expected
by the StandardSessionManager.
version: $Revision: 1.2 $ author: Kyle Clark |
Method Summary | |
public HttpSession | getHttpSession() | public long | getMaxIdleTime() Obtain the maximum idle time for this object. | public long | getMaxNoUserIdleTime() Obtain the maximum idle time when a User object
is not associated with the session. | public long | getTimeCreated() Obtain the creation time for this object. | public long | getTimeExpires() Obtain the time of expiry for this object. | public long | getTimeLastUsed() Obtain the time of last use for this object. | public void | setMaxIdleTime(long maxIdleTime) Set the maximum idle time for this object. | public void | setMaxNoUserIdleTime(long maxIdleTime) set the maximum idle time when a User object
is not associated with the session. | public void | setTimeExpires(long timeExpires) Set the time of expiry for this object. | public void | touch() Set the "last used" timestamp to the current time, resetting the
idle period. |
getHttpSession | public HttpSession getHttpSession()(Code) | | Expose the HttpSession interface
|
getMaxIdleTime | public long getMaxIdleTime()(Code) | | Obtain the maximum idle time for this object. Zero (or negative)
indicates that sessions may be idle indefinetly.
The maximum number of milliseconds this sessionmay be idle. |
getMaxNoUserIdleTime | public long getMaxNoUserIdleTime()(Code) | | Obtain the maximum idle time when a User object
is not associated with the session. Zero (or negative) indicates that
sessions may be idle indefinetly.
The maximum number of milliseconds this sessionmay be idle. |
getTimeCreated | public long getTimeCreated()(Code) | | Obtain the creation time for this object. The time is in
milliseconds since Midnight, Jan 1, 1970 (epoch).
The creation time since epoch for this object. |
getTimeExpires | public long getTimeExpires()(Code) | | Obtain the time of expiry for this object. The time is in
milliseconds since Midnight, Jan 1, 1970 (epoch).
Returns zero (or negative) if there is no expiration date.
Note: this is a maximum lifespan for the session, regardless of activity.
The time of expiry since epoch for this object. |
getTimeLastUsed | public long getTimeLastUsed()(Code) | | Obtain the time of last use for this object. The time is in
milliseconds since Midnight, Jan 1, 1970 (epoch).
The time of last use since epoch for this object. |
setMaxIdleTime | public void setMaxIdleTime(long maxIdleTime)(Code) | | Set the maximum idle time for this object. Set this to zero
(or negative) to disable idle checking.
Parameters: maxIdleTime - The maximum number of milliseconds thissession may be idle, or zero (or negative) to allow sessions to be idleindefinetly. |
setMaxNoUserIdleTime | public void setMaxNoUserIdleTime(long maxIdleTime)(Code) | | set the maximum idle time when a User object
is not associated with the session. Set this to zero (or negative) to
disable idle checking.
Parameters: maxIdleTime - The maximum number of milliseconds thissession may be idle. |
setTimeExpires | public void setTimeExpires(long timeExpires)(Code) | | Set the time of expiry for this object. The time is in
milliseconds since Midnight, Jan 1, 1970 (epoch).
Set this value to zero (or less) to indicate that the session does not
have a maximum age.
Parameters: timeLastUsed - The time of expiry since epoch. |
touch | public void touch()(Code) | | Set the "last used" timestamp to the current time, resetting the
idle period.
|
|
|