Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


waggle.core.id
Class XSessionID

java.lang.Object
  extended by waggle.core.id.XSessionID

All Implemented Interfaces:
Serializable, Comparable<XSessionID>

public final class XSessionID
extends Object
implements Serializable, Comparable<XSessionID>

Unique Session IDs.

The 'unique' session ID is a random ID that we assign to each HTTP Session.

Note that this is NOT the HTTP Session's JSESSIONID value.

We need to do this because it appears as though the JSESSIONID value assigned by the container can change many times over the lifetime of an HTTP Session's lifetime.

See Also:
Serialized Form

Constructor Summary
XSessionID()
          Default constructor for SOAP use only!

 

Method Summary
 int compareTo(XSessionID that)
           
 boolean equals(Object obj)
           
 String getStringValue()
          Extra getter for SOAP use only!
 int hashCode()
           
 void setStringValue(String stringValue)
          Extra setter for SOAP use only!
 String toLogableString()
          Return a logable version of the Session ID.
static String toLogableString(String sessionID)
          Return a logable version of a Session ID.
 String toString()
           
static XSessionID valueOf(String sessionID)
          Create a Session ID from a String.

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

XSessionID

public XSessionID()
Default constructor for SOAP use only! Non-SOAP code should construct XSessionID objects with the valueOf method.

Method Detail

valueOf

public static XSessionID valueOf(String sessionID)
Create a Session ID from a String.
Parameters:
sessionID - The String Session ID.
Returns:
The new XSessionID.

toLogableString

public String toLogableString()
Return a logable version of the Session ID.
Returns:
The logable version of the Session ID.

toLogableString

public static String toLogableString(String sessionID)
Return a logable version of a Session ID.
Parameters:
sessionID - The Session ID.
Returns:
The logable version of a Session ID.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(XSessionID that)
Specified by:
compareTo in interface Comparable<XSessionID>

getStringValue

public String getStringValue()
Extra getter for SOAP use only! Non-SOAP code should call toString or toLogableString instead.
Returns:
the XObjectID as a long integer

setStringValue

public void setStringValue(String stringValue)
Extra setter for SOAP use only! Non-SOAP code should construct XSessionID objects with the valueOf method and then tread the object as immutable.
Parameters:
stringValue - the new string value

Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.