public class StrictSendPathsRequestBuilder extends RequestBuilder
RequestBuilder.Order| Constructor and Description |
|---|
StrictSendPathsRequestBuilder(okhttp3.OkHttpClient httpClient,
okhttp3.HttpUrl serverURI) |
| Modifier and Type | Method and Description |
|---|---|
StrictSendPathsRequestBuilder |
destinationAccount(java.lang.String account) |
StrictSendPathsRequestBuilder |
destinationAssets(java.util.List<Asset> assets) |
Page<PathResponse> |
execute()
Build and execute request.
|
static Page<PathResponse> |
execute(okhttp3.OkHttpClient httpClient,
okhttp3.HttpUrl uri)
|
StrictSendPathsRequestBuilder |
sourceAmount(java.lang.String amount) |
StrictSendPathsRequestBuilder |
sourceAsset(Asset asset) |
cursor, limit, order, setAssetParameter, setAssetsParameterpublic StrictSendPathsRequestBuilder(okhttp3.OkHttpClient httpClient,
okhttp3.HttpUrl serverURI)
public StrictSendPathsRequestBuilder destinationAccount(java.lang.String account)
public StrictSendPathsRequestBuilder destinationAssets(java.util.List<Asset> assets)
public StrictSendPathsRequestBuilder sourceAmount(java.lang.String amount)
public StrictSendPathsRequestBuilder sourceAsset(Asset asset)
public static Page<PathResponse> execute(okhttp3.OkHttpClient httpClient, okhttp3.HttpUrl uri)
httpClient - OkHttpClient to use to send the request.uri - HttpUrl URI to send the request to.Page of PathResponseNetworkException - All the exceptions below are subclasses of
NetworkErrorBadRequestException - if the request fails due to a bad request
(4xx)BadResponseException - if the request fails due to a bad
response from the server (5xx)TooManyRequestsException - if the request fails due to too many requests sent to the
serverRequestTimeoutException - When Horizon returns a Timeout
or connection timeout occurredUnknownResponseException - if the server returns an unknown
status codeConnectionErrorException - When the request cannot be executed
due to cancellation or connectivity problems, etc.public Page<PathResponse> execute()
Page of PathResponseNetworkException - All the exceptions below are subclasses of
NetworkErrorBadRequestException - if the request fails due to a bad request
(4xx)BadResponseException - if the request fails due to a bad
response from the server (5xx)TooManyRequestsException - if the request fails due to too many requests sent to the
serverRequestTimeoutException - When Horizon returns a Timeout
or connection timeout occurredUnknownResponseException - if the server returns an unknown
status codeConnectionErrorException - When the request cannot be executed
due to cancellation or connectivity problems, etc.