Package io.ably.lib.http
Class HttpPaginatedQuery
- java.lang.Object
-
- io.ably.lib.http.HttpPaginatedQuery
-
- All Implemented Interfaces:
HttpCore.ResponseHandler<HttpPaginatedResponse>
public class HttpPaginatedQuery extends java.lang.Object implements HttpCore.ResponseHandler<HttpPaginatedResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classHttpPaginatedQuery.HttpPaginatedResult
-
Constructor Summary
Constructors Constructor Description HttpPaginatedQuery(Http http, java.lang.String method, java.lang.String path, Param[] headers, Param[] params, HttpCore.RequestBody requestBody)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpPaginatedResponseexec()Get the result of the first queryHttpPaginatedResponseexec(Param[] params)Get the result of the first queryHttpPaginatedResponsehandleResponse(HttpCore.Response response, ErrorInfo error)
-
-
-
Constructor Detail
-
HttpPaginatedQuery
public HttpPaginatedQuery(Http http, java.lang.String method, java.lang.String path, Param[] headers, Param[] params, HttpCore.RequestBody requestBody)
-
-
Method Detail
-
exec
public HttpPaginatedResponse exec() throws AblyException
Get the result of the first query- Returns:
- An HttpPaginatedResponse giving the first page of results together with any available links to related results pages.
- Throws:
AblyException
-
exec
public HttpPaginatedResponse exec(Param[] params) throws AblyException
Get the result of the first query- Returns:
- An HttpPaginatedResponse giving the first page of results together with any available links to related results pages.
- Throws:
AblyException
-
handleResponse
public HttpPaginatedResponse handleResponse(HttpCore.Response response, ErrorInfo error) throws AblyException
- Specified by:
handleResponsein interfaceHttpCore.ResponseHandler<HttpPaginatedResponse>- Throws:
AblyException
-
-