Package org.stellar.sdk.requests
Class RequestBuilder
java.lang.Object
org.stellar.sdk.requests.RequestBuilder
- Direct Known Subclasses:
AccountsRequestBuilder,AssetsRequestBuilder,ClaimableBalancesRequestBuilder,EffectsRequestBuilder,FeeStatsRequestBuilder,LedgersRequestBuilder,LiquidityPoolsRequestBuilder,OffersRequestBuilder,OperationsRequestBuilder,OrderBookRequestBuilder,PaymentsRequestBuilder,RootRequestBuilder,StrictReceivePathsRequestBuilder,StrictSendPathsRequestBuilder,TradeAggregationsRequestBuilder,TradesRequestBuilder,TransactionsRequestBuilder
Abstract class for request builders.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents possibleorderparameter values. -
Method Summary
Modifier and TypeMethodDescriptionSetscursorparameter on the request.limit(int number) Setslimitparameter on the request.order(RequestBuilder.Order direction) Setsorderparameter on the request.voidsetAssetParameter(String name, Asset asset) Sets a parameter consisting of an asset represented as "assetCode:assetIssue" on the request.voidsetAssetsParameter(String name, List<Asset> assets) Sets a parameter consisting of a comma separated list of assets on the request.
-
Method Details
-
cursor
Setscursorparameter on the request. A cursor is a value that points to a specific location in a collection of resources. The cursor attribute itself is an opaque value meaning that users should not try to parse it.- Parameters:
cursor- A cursor is a value that points to a specific location in a collection of resources.- See Also:
-
limit
Setslimitparameter on the request. It defines maximum number of records to return. For range and default values check documentation of the endpoint requested.- Parameters:
number- maxium number of records to return
-
order
Setsorderparameter on the request.- Parameters:
direction-RequestBuilder.Order
-
setAssetsParameter
Sets a parameter consisting of a comma separated list of assets on the request.- Parameters:
name- the name of the query parameterassets- the list of assets to be serialized into the query parameter value
-
setAssetParameter
Sets a parameter consisting of an asset represented as "assetCode:assetIssue" on the request.- Parameters:
name- the name of the query parameterasset- the asset to be serialized into the query parameter value
-