T - the body response type.public class AsyncPaginatedQuery<T>
extends java.lang.Object
| Constructor and Description |
|---|
AsyncPaginatedQuery(Http http,
java.lang.String path,
Param[] headers,
Param[] params,
HttpCore.BodyHandler<T> bodyHandler)
Construct a PaginatedQuery
|
AsyncPaginatedQuery(Http http,
java.lang.String path,
Param[] headers,
Param[] params,
HttpCore.RequestBody requestBody,
HttpCore.BodyHandler<T> bodyHandler)
Construct a PaginatedQuery
|
| Modifier and Type | Method and Description |
|---|---|
void |
get(Callback<AsyncPaginatedResult<T>> callback)
Get the result of the first query
|
public AsyncPaginatedQuery(Http http, java.lang.String path, Param[] headers, Param[] params, HttpCore.BodyHandler<T> bodyHandler)
http. - the httpCore instancepath. - the path of the resource being queriedheaders. - headers to pass into the first and all relative queriesparams. - params to pass into the initial querybodyHandler. - handler to parse response bodies for first and all relative queriespublic AsyncPaginatedQuery(Http http, java.lang.String path, Param[] headers, Param[] params, HttpCore.RequestBody requestBody, HttpCore.BodyHandler<T> bodyHandler)
http. - the http instancepath. - the path of the resource being queriedheaders. - headers to pass into the first and all relative queriesparams. - params to pass into the initial querybodyHandler. - handler to parse response bodies for first and all relative queriespublic void get(Callback<AsyncPaginatedResult<T>> callback)
callback. - On success returns A PaginatedResult