com.ibm.dse.clientserver
Class DSEChannelSession

java.lang.Object
  |
  +--com.ibm.dse.clientserver.DSEChannelSession

public class DSEChannelSession
extends java.lang.Object
implements ChannelSession

This class implements ChannelSession interface.

This is the concrete implementation to be used to manage the session if the device driver does not provide the session management


Constructor Summary
DSEChannelSession()
          DSEChannelSession constructor Create the unique key for the session
DSEChannelSession(java.lang.String sessionId)
          Constructor for the DSEChannelSession with a session id
 
Method Summary
protected static java.lang.String generateKey()
          Generate the unique key for the session
 java.lang.String getId()
          Get the session id.
 java.lang.Object getValue(java.lang.String key)
          Get the value for a given key
 void putValue(java.lang.String key, java.lang.Object value)
          Put the value for a key
 void removeValue(java.lang.String key)
          Remove the value for a given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSEChannelSession

public DSEChannelSession()
DSEChannelSession constructor Create the unique key for the session

DSEChannelSession

public DSEChannelSession(java.lang.String sessionId)
Constructor for the DSEChannelSession with a session id
Parameters:
sessionId - java.lang.String
Method Detail

generateKey

protected static java.lang.String generateKey()
Generate the unique key for the session
Returns:
java.lang.String

getId

public java.lang.String getId()
Get the session id.
Specified by:
getId in interface ChannelSession
Returns:
java.lang.String

getValue

public java.lang.Object getValue(java.lang.String key)
Get the value for a given key
Parameters:
key - java.lang.String
Returns:
java.lang.Object

putValue

public void putValue(java.lang.String key,
                     java.lang.Object value)
Put the value for a key
Parameters:
key - java.lang.String
value - java.lang.Object

removeValue

public void removeValue(java.lang.String key)
Remove the value for a given key
Parameters:
key - java.lang.String