BEAST
|
Interface that helps out when communicating with a remote node. More...
Public Member Functions | |
ExchangeResponse | send (String remoteAddress, AuthorizationRequest request) |
Sends an authorization request to a remote host. | |
ExchangeResponse | sendDexStyle (String remoteAddress, AuthorizationRequest request) |
Uses "OLD" style DEX for sending an authorization request to a remote node. | |
ExchangeResponse | send (SendFileRequest request) |
Sends a file request to the remote node. | |
ExchangeMessage | parse (InputStream json) |
Parses an input stream (most likely formatted as a json object) and translates it into an object within the exchange message. | |
Interface that helps out when communicating with a remote node.
ExchangeMessage eu.baltrad.beast.exchange.ExchangeConnector.parse | ( | InputStream | json | ) |
Parses an input stream (most likely formatted as a json object) and translates it into an object within the exchange message.
json | the input stream |
Implemented in eu.baltrad.beast.exchange.json.HttpExchangeConnector.
ExchangeResponse eu.baltrad.beast.exchange.ExchangeConnector.send | ( | SendFileRequest | request | ) |
Sends a file request to the remote node.
Uses "OLD" style DEX protocol which currently is the only available.
request | the request |
Implemented in eu.baltrad.beast.exchange.json.HttpExchangeConnector.
ExchangeResponse eu.baltrad.beast.exchange.ExchangeConnector.send | ( | String | remoteAddress, |
AuthorizationRequest | request ) |
Sends an authorization request to a remote host.
remoteAddress | the remote address |
request | the request |
Implemented in eu.baltrad.beast.exchange.json.HttpExchangeConnector.
ExchangeResponse eu.baltrad.beast.exchange.ExchangeConnector.sendDexStyle | ( | String | remoteAddress, |
AuthorizationRequest | request ) |
Uses "OLD" style DEX for sending an authorization request to a remote node.
If for example 404 is returned when using send(String, AuthorizationRequest)
then a good idea can be to try this API. Note, since this is old style it is set to deprecated at creation.
remoteAddress | the remote address |
request | the request |
Implemented in eu.baltrad.beast.exchange.json.HttpExchangeConnector.