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
Modifier and TypeClassDescriptionstatic enum
Represents possibleorder
parameter values. -
Method Summary
Modifier and TypeMethodDescriptionSetscursor
parameter on the request.limit
(int number) Setslimit
parameter on the request.order
(RequestBuilder.Order direction) Setsorder
parameter on the request.void
setAssetParameter
(String name, Asset asset) Sets a parameter consisting of an asset represented as "assetCode:assetIssue" on the request.void
setAssetsParameter
(String name, List<Asset> assets) Sets a parameter consisting of a comma separated list of assets on the request.
-
Method Details
-
cursor
Setscursor
parameter 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
Setslimit
parameter 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
Setsorder
parameter 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
-