public abstract class AbstractClient extends Object
| Constructor and Description |
|---|
AbstractClient() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
closeConnection()
Use this method to close the connection of this client.
|
abstract JsonRPCResponse |
invokeAndReadResponse(JsonRPCRequest requestObject,
URI endpointUri,
boolean sslVerificationDisabled)
Use this method to send a
requestObject to the
endpointUri and to receive an answer. |
public abstract JsonRPCResponse invokeAndReadResponse(JsonRPCRequest requestObject, URI endpointUri, boolean sslVerificationDisabled) throws BeowulfCommunicationException, BeowulfResponseException
requestObject to the
endpointUri and to receive an answer.requestObject - The object to send.endpointUri - The endpoint to connect and send to.sslVerificationDisabled - Define if the SSL verification should be disabled.JsonRPCResponse object.BeowulfCommunicationException - In case of communication problems.BeowulfResponseException - If the answer received from the node is no valid JSON.public abstract void closeConnection()
throws IOException
IOException - If the connection can't be closed.Copyright © 2019. All rights reserved.