ora.core.remote
Class Session
java.lang.Object
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
Constructor Summary |
Session(Session session)
Copy constructor |
Session(java.lang.String host,
int port,
java.lang.String protocol,
java.lang.String sessionKey)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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)