ora.core.remote
Class Session

java.lang.Object
  extended by ora.core.remote.Session
All Implemented Interfaces:
java.io.Serializable

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

Author:
kristian martin This class holds informations to connect to remote Pls. note the host, port, protocol are required to connect to the server aquiring informations how to connect to the instance defined by the sessionkey The sessionKey is the key to identify the instance to be connected to. It is used to retrieve instance level informations such as port.
See Also:
Serialized Form

Field Summary
static java.lang.String PROTOCOL_HTTP
           
static java.lang.String PROTOCOL_PLAINSOCKET
           
 
Constructor Summary
Session(Session session)
          Copy constructor
Session(java.lang.String host, int port, java.lang.String protocol, java.lang.String sessionKey)
           
 
Method Summary
 java.lang.String getHost()
           
 int getPort()
           
 java.lang.String getProtocol()
           
 java.lang.String getSessionKey()
           
 boolean isKeepConnection()
           
 void setKeepConnection(boolean keepConnection)
           
 void setSessionKey(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL_PLAINSOCKET

public static final java.lang.String PROTOCOL_PLAINSOCKET
See Also:
Constant Field Values

PROTOCOL_HTTP

public static final java.lang.String PROTOCOL_HTTP
See Also:
Constant Field Values
Constructor Detail

Session

public Session(Session session)
Copy constructor

Parameters:
session -

Session

public Session(java.lang.String host,
               int port,
               java.lang.String protocol,
               java.lang.String sessionKey)
Method Detail

isKeepConnection

public boolean isKeepConnection()
Returns:
the keepConnection

setKeepConnection

public void setKeepConnection(boolean keepConnection)
Parameters:
keepConnection - the keepConnection to set

getHost

public java.lang.String getHost()

getPort

public int getPort()

getProtocol

public java.lang.String getProtocol()

getSessionKey

public java.lang.String getSessionKey()

setSessionKey

public void setSessionKey(java.lang.String key)