Package org.stellar.sdk.requests
Class StrictSendPathsRequestBuilder
java.lang.Object
org.stellar.sdk.requests.RequestBuilder
org.stellar.sdk.requests.StrictSendPathsRequestBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.stellar.sdk.requests.RequestBuilder
RequestBuilder.Order -
Constructor Summary
ConstructorsConstructorDescriptionStrictSendPathsRequestBuilder(okhttp3.OkHttpClient httpClient, okhttp3.HttpUrl serverURI) -
Method Summary
Modifier and TypeMethodDescriptiondestinationAccount(String account) destinationAssets(List<Asset> assets) execute()Build and execute request.static Page<PathResponse> execute(okhttp3.OkHttpClient httpClient, okhttp3.HttpUrl uri) sourceAmount(String amount) sourceAsset(Asset asset) Methods inherited from class org.stellar.sdk.requests.RequestBuilder
cursor, limit, order, setAssetParameter, setAssetsParameter
-
Constructor Details
-
StrictSendPathsRequestBuilder
public StrictSendPathsRequestBuilder(okhttp3.OkHttpClient httpClient, okhttp3.HttpUrl serverURI)
-
-
Method Details
-
destinationAccount
-
destinationAssets
-
sourceAmount
-
sourceAsset
-
execute
- Parameters:
httpClient-OkHttpClientto use to send the request.uri-HttpUrlURI to send the request to.- Returns:
PageofPathResponse- Throws:
NetworkException- 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 aTimeoutor connection timeout occurredUnknownResponseException- if the server returns an unknown status codeConnectionErrorException- When the request cannot be executed due to cancellation or connectivity problems, etc.
-
execute
Build and execute request.- Returns:
PageofPathResponse- Throws:
NetworkException- 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 aTimeoutor connection timeout occurredUnknownResponseException- if the server returns an unknown status codeConnectionErrorException- When the request cannot be executed due to cancellation or connectivity problems, etc.
-