|
|||||||||
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 |
---|
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(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(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. |
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, resolvePublicKeys, setListener, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 final void reconnect(java.lang.String serverHandle) throws DOException
DOException
public final void connect(java.lang.String serverHandle) 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 |