com.sdm.quasar.client.core.application
Class SessionId

java.lang.Object
  extended bycom.sdm.quasar.client.core.application.SessionId

public class SessionId
extends java.lang.Object

Identifies a session within the application.

If the client environment supplies a unique session id, that session id is used to identify the session. The SessionManager uses these external IDs wrapped within this object. Otherwise the SessionManager is responsible for creating unique ids.

Version:
1.0
Author:
Carsten Lucke, sd&m AG, Bernd Olleck, sd&m AG

Constructor Summary
SessionId(java.lang.String sessionId)
          Creates a session id.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getSessionId()
          Return the unique id of the session.
 int hashCode()
           
 java.lang.String toString()
          Returns a string containing the external id.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionId

public SessionId(java.lang.String sessionId)
Creates a session id.

Parameters:
sessionId - the unique id of the session. In case of a client environment that manages session ids (e.g. a web container), this parameter should be identical to the external id.
Method Detail

getSessionId

public java.lang.String getSessionId()
Return the unique id of the session. In case of a client environment that manages session ids (e.g. a web container), this parameter should be identical to the external id.

Returns:
the external session id

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()
Returns a string containing the external id.

Returns:
a string containing the external id.