|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cnri.dobj.DOConnection
net.cnri.dobj.DOClientConnection
public class DOClientConnection
This class provides the interface for client software to communicate using the DO protocol with a specific digital object server.
Field Summary | |
---|---|
static javax.crypto.spec.DHParameterSpec |
RFC_2539_WELL_KNOWN_GROUP_2
Pre-computed parameters for use with setEncryptionParameters
on slow clients (e.g. |
Constructor Summary | |
---|---|
DOClientConnection(DOAuthentication authentication)
Instantiate a new DOClientConnection with the specified identity and authentication information. |
Method Summary | |
---|---|
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. |
Methods inherited from class net.cnri.dobj.DOConnection |
---|
close, decodeUTF8, decodeUTF8, encodeUTF8, getAuthID, getProtocolMajorVersion, getProtocolMinorVersion, getResolver, getSocket, isEncrypted, isOpen, setListener, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final javax.crypto.spec.DHParameterSpec RFC_2539_WELL_KNOWN_GROUP_2
setEncryptionParameters
on slow clients (e.g. Android devices).
Constructor Detail |
---|
public DOClientConnection(DOAuthentication authentication) throws DOException
DOException
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |