com.businessobjects.dsws
Class ConnectionState

java.lang.Object
  extended by com.businessobjects.dsws.ConnectionState
All Implemented Interfaces:
java.io.Serializable

public class ConnectionState
extends java.lang.Object
implements java.io.Serializable

The ConnectionState class stores information about the current user's session ID.

Note: A connection state object containing session information can be recovered using the Session.getConnectionState() method.

See Also:
Connection, Serialized Form

Constructor Summary
ConnectionState()
          Instantiate a new blank ConnectionState object.
ConnectionState(java.lang.String sessionID)
          Instantiate a new ConnectionState object with all parameters set.
 
Method Summary
 ConnectionState copy()
          Internal Use Only.
 java.lang.String getCookieString()
           
 java.lang.String getSessionID()
          Return the current user's session ID.
 void setCookieString(java.lang.String cookieStr)
          Set the http cookies with current session
 void setSessionID(java.lang.String sSessionID)
          Set the current user's session ID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionState

public ConnectionState()
Instantiate a new blank ConnectionState object.


ConnectionState

public ConnectionState(java.lang.String sessionID)
Instantiate a new ConnectionState object with all parameters set.

Parameters:
sessionID - The user's current session ID. This value can be obtained using SessionInfo.getSessionID
See Also:
SessionInfo
Method Detail

copy

public ConnectionState copy()

Internal Use Only.


getSessionID

public java.lang.String getSessionID()
Return the current user's session ID.

Returns:
a string containing the current users session ID.

setSessionID

public void setSessionID(java.lang.String sSessionID)
Set the current user's session ID. This value can be obtained using SessionInfo.getSessionID

Parameters:
sSessionID - a string containing the current users session ID.
See Also:
SessionInfo

getCookieString

public java.lang.String getCookieString()
Returns:
the http cookies with current session

setCookieString

public void setCookieString(java.lang.String cookieStr)
Set the http cookies with current session