public abstract class RequestBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RequestBuilder.Order
Represents possible
order parameter values. |
Modifier and Type | Method and Description |
---|---|
RequestBuilder |
cursor(java.lang.String cursor)
Sets
cursor parameter on the request. |
RequestBuilder |
limit(int number)
Sets
limit parameter on the request. |
RequestBuilder |
order(RequestBuilder.Order direction)
Sets
order parameter on the request. |
void |
setAssetParameter(java.lang.String name,
Asset asset)
Sets a parameter consisting of an asset represented as "assetCode:assetIssue" on the request.
|
void |
setAssetsParameter(java.lang.String name,
java.util.List<Asset> assets)
Sets a parameter consisting of a comma separated list of assets on the request.
|
public RequestBuilder cursor(java.lang.String cursor)
cursor
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.cursor
- A cursor is a value that points to a specific location in a collection of
resources.public RequestBuilder limit(int number)
limit
parameter on the request. It defines maximum number of records to
return. For range and default values check documentation of the endpoint requested.number
- maxium number of records to returnpublic RequestBuilder order(RequestBuilder.Order direction)
order
parameter on the request.direction
- RequestBuilder.Order
public void setAssetsParameter(java.lang.String name, java.util.List<Asset> assets)
name
- the name of the query parameterassets
- the list of assets to be serialized into the query parameter valuepublic void setAssetParameter(java.lang.String name, Asset asset)
name
- the name of the query parameterasset
- the asset to be serialized into the query parameter value