|
|||||||||||
| ?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
| SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.sessions.SessionSettings
Encapsulates the settings of a session.
These are composed of:
| Field Summary | |
private static?java.lang.String |
COPYRIGHT_NOTICE??????????Copyright statement |
private static?DAILogger |
LOG??????????Logger object for this class |
private ?SessionID |
mSessionID??????????Unique identifier for the session |
private ?long |
mTimeout??????????Timeout length in milliseconds or TIME_NOT_SET |
static?long |
TIME_NOT_SET??????????Special value to indicate that a time setting is not specified. |
| Constructor Summary | |
SessionSettings(long?timeout)??????????Creates a new session settings object with the specified timeout. |
|
| Method Summary | |
?boolean |
equals(java.lang.Object?obj)??????????Returns true if and only if the parameter is a SessionSettings object with an equal session ID and timeout value. |
?SessionID |
getSessionID()??????????Retrieves the session identifier setting from this object. |
?long |
getTimeout()??????????Gets the time in milliseconds that the session is due to expire. |
?boolean |
hasTimeout()??????????Returns true if a timeout has been set to 0 or more, or false if the timeout is TIME_NOT_SET. |
?java.lang.String |
toString()??????????Returns a string of XML data describing the session settings. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
public static final long TIME_NOT_SET
private SessionID mSessionID
private long mTimeout
| Constructor Detail |
public SessionSettings(long?timeout)
timeout - The number of milliseconds that the session will live for after the last session participant leaves it, or SessionID.TIME_NOT_SET if there is no timeout.| Method Detail |
public boolean hasTimeout()
true if a timeout has been set to 0 or more, or false if the timeout is TIME_NOT_SET.
public long getTimeout()
public SessionID getSessionID()
public boolean equals(java.lang.Object?obj)
true if and only if the parameter is a SessionSettings object with an equal session ID and timeout value.
equals in class java.lang.Object
public java.lang.String toString()
This takes the form:
mySessionID 12345678
toString in class java.lang.Object
|
|||||||||||
| ?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
| SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD | ||||||||||