|
|||||||||||
?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD |
java.lang.Object | +--uk.org.ogsadai.sessions.SessionID
An object use to identify a particular session.
This consists of a prefixed identifier string with a value that is guaranteed to be unique within the scope of a single JVM.
Field Summary | |
private static?java.lang.String |
COPYRIGHT_NOTICE ??????????Copyright statement |
private ?java.lang.String |
mIdentifier ??????????Identifier string |
static?java.lang.String |
PREFIX ??????????Prefix for all session ID identifier strings. |
Constructor Summary | |
SessionID() ??????????Creates a new SessionID that is guaranteed to be unique within the context of a JVM. |
|
SessionID(java.lang.String?identifier) ??????????Creates a new SessionID with the specified identifier. |
Method Summary | |
?boolean |
equals(java.lang.Object?obj) ??????????Compares the specified object with this session identifier for equality. |
?int |
hashCode() ??????????Return a hash code for this object. |
?java.lang.String |
toString() ??????????Returns the session identifier string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private final java.lang.String mIdentifier
public static final java.lang.String PREFIX
Constructor Detail |
public SessionID()
SessionID
that is guaranteed to be unique within the context of a JVM.
public SessionID(java.lang.String?identifier)
SessionID
with the specified identifier. This constructor should only be use to recreate a SessionID
representing an existing session.
identifier
- The identifier string for a session.java.lang.IllegalArgumentException
- if the identifier
parameter is null
.Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object?obj)
Equality is determined by ensuring the object is a SessionID
then performing a "value comparison" of the session identifier string.
equals
in class java.lang.Object
true
if the specified object is a non-null SessionID
with an identifier string equal to this session identifier.String.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
String.hashCode()
|
|||||||||||
?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD |