T
- the response type.public abstract class PaginatedRequestExecutor<T> extends RequestExecutor<T>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
eTag |
protected int |
maxResult |
protected java.lang.String |
order |
protected java.lang.String |
orderBy |
protected java.lang.String |
query |
protected int |
startIndex |
Constructor and Description |
---|
PaginatedRequestExecutor() |
Modifier and Type | Method and Description |
---|---|
PaginatedRequestExecutor |
eTag(java.lang.String eTag)
Specifies HTTP entity tag purposed for caching REST API calls.
|
PaginatedRequestExecutor |
filter(java.lang.String query)
Specifies the filter for requested data.
|
PaginatedRequestExecutor |
maxResult(int maxResult)
Specifies the maximum size of response data collection.
|
PaginatedRequestExecutor |
orderBy(OrderBy orderBy,
Order order)
Specifies the ordering of response data elements.
|
protected java.util.Map<java.lang.String,java.lang.String> |
params()
Composes the request's query parameters in map.
|
PaginatedRequestExecutor |
startIndex(int startIndex)
Specifies the start index of requested data.
|
execute, execute, prepareCall
protected int startIndex
protected int maxResult
protected java.lang.String query
protected java.lang.String orderBy
protected java.lang.String order
protected java.lang.String eTag
public PaginatedRequestExecutor startIndex(int startIndex)
startIndex
- the start index.public PaginatedRequestExecutor maxResult(int maxResult)
maxResult
- the maximum response size value.public PaginatedRequestExecutor filter(java.lang.String query)
query
- the query filter.public PaginatedRequestExecutor orderBy(OrderBy orderBy, Order order)
orderBy
- the field type that specifies the order by column.order
- ascending or descending.public PaginatedRequestExecutor eTag(java.lang.String eTag)
eTag
- the entity tag value.protected java.util.Map<java.lang.String,java.lang.String> params()
params
in class RequestExecutor<T>