public class DOClientConnection extends DOConnection
Modifier and Type | Field and Description |
---|---|
static javax.crypto.spec.DHParameterSpec |
RFC_2539_WELL_KNOWN_GROUP_2
Pre-computed parameters for use with
setEncryptionParameters
on slow clients (e.g. |
CONTROL_CHANNEL_ID, DEBUG, DEBUG_BLOCKING, DEBUG_BYTES, DEBUG_CONTROL, DEFAULT_DEBUG, DEFAULT_DEBUG_BLOCKING, DEFAULT_DEBUG_BYTES, DEFAULT_DEBUG_CONTROL, DEFAULT_READ_BUFFER_SIZE, DEFAULT_WRITE_BUFFER_SIZE, ERROR_RESPONSE_CODE, MAX_BYTES_IN_BLOCKING_WINDOW, MIN_BYTES_IN_BLOCKING_WINDOW, SUCCESS_RESPONSE_CODE
Constructor and Description |
---|
DOClientConnection(DOAuthentication authentication)
Instantiate a new DOClientConnection with the specified identity and
authentication information.
|
Modifier and Type | Method and Description |
---|---|
void |
connect(DOServerInfo server)
Connect directly to the given server.
|
void |
connect(DOServiceInfo connService)
Connect directly to one of the servers in the service
|
void |
connect(java.lang.String serverHandle)
Connect directly to one of the servers in the service identified
by the given identifier.
|
DOServerInfo |
getServerInfo()
If connected to a server, return the information for the server to which
we are connected
|
java.lang.String |
getServiceID()
If connected to a service by identifier, return that identifier
|
DOServiceInfo |
getServiceInfo()
If connected to ta service, return the service information
|
StreamPair |
performOperation(java.lang.String objectID,
java.lang.String operationID)
Submit a new operation on a new channel and return an InputStream from which
the results of the operation can be read.
|
StreamPair |
performOperation(java.lang.String objectID,
java.lang.String operationID,
HeaderSet operationParameters)
Submit a new operation on a new channel and return an InputStream from which
the results of the operation can be read.
|
void |
reconnect(DOServiceInfo service)
Connect directly to one of a the servers in the service
|
void |
reconnect(java.lang.String serverHandle)
Connect directly to one of a the servers in the service identified
by the given identifier, if we aren't already connected.
|
static void |
setEncryptionParameters(javax.crypto.spec.DHParameterSpec dhParams)
Sets the Diffie-Hellman parameters to be used for encryption.
|
void |
setUseEncryption(boolean encrypt)
Sets whether or not this connection will be encrypted.
|
close, decodeUTF8, decodeUTF8, encodeUTF8, getAuthID, getProtocolMajorVersion, getProtocolMinorVersion, getProtocolTimeout, getResolver, getSocket, isEncrypted, isOpen, setListener, setProtocolTimeout, setResolver, toString
public static final javax.crypto.spec.DHParameterSpec RFC_2539_WELL_KNOWN_GROUP_2
setEncryptionParameters
on slow clients (e.g. Android devices).public DOClientConnection(DOAuthentication authentication) throws DOException
DOException
public java.lang.String getServiceID()
public DOServiceInfo getServiceInfo()
public DOServerInfo getServerInfo()
public void setUseEncryption(boolean encrypt)
public static void setEncryptionParameters(javax.crypto.spec.DHParameterSpec dhParams)
public final void reconnect(java.lang.String serverHandle) throws DOException
DOException
public final void reconnect(DOServiceInfo service) throws DOException
DOException
public final void connect(java.lang.String serverHandle) throws DOException
DOException
public final void connect(DOServiceInfo connService) throws DOException
DOException
public final void connect(DOServerInfo server) throws DOException
DOException
public StreamPair performOperation(java.lang.String objectID, java.lang.String operationID) throws DOException
DOException
public StreamPair performOperation(java.lang.String objectID, java.lang.String operationID, HeaderSet operationParameters) throws DOException
DOException