-
public class PaginatedQuery<T>An object that encapsulates parameters of a REST query with a paginated response
-
-
Constructor Summary
Constructors Constructor Description PaginatedQuery(Http http, String path, Array<Param> headers, Array<Param> params, HttpCore.BodyHandler<T> bodyHandler)Construct a PaginatedQuery PaginatedQuery(Http http, String path, Array<Param> headers, Array<Param> params, HttpCore.RequestBody requestBody, HttpCore.BodyHandler<T> bodyHandler)Construct a PaginatedQuery
-
Method Summary
Modifier and Type Method Description PaginatedResult<T>get()Get the result of the first query -
-
Constructor Detail
-
PaginatedQuery
PaginatedQuery(Http http, String path, Array<Param> headers, Array<Param> params, HttpCore.BodyHandler<T> bodyHandler)
Construct a PaginatedQuery- Parameters:
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 queries
-
PaginatedQuery
PaginatedQuery(Http http, String path, Array<Param> headers, Array<Param> params, HttpCore.RequestBody requestBody, HttpCore.BodyHandler<T> bodyHandler)
Construct a PaginatedQuery- Parameters:
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 queries
-
-
Method Detail
-
get
PaginatedResult<T> get()
Get the result of the first query
-
-
-
-