public abstract class HttpPaginatedResponse
extends java.lang.Object
PaginatedResult which represents a page of results plus metadata indicating the relative queries available to it.
HttpPaginatedResponse additionally carries information about the response to an HTTP request.| Modifier and Type | Field and Description |
|---|---|
int |
errorCode
The error code if the X-Ably-Errorcode HTTP header is sent in the response.
|
java.lang.String |
errorMessage
The error message if the X-Ably-Errormessage HTTP header is sent in the response.
|
Param[] |
headers
The headers of the response.
|
int |
statusCode
The HTTP status code of the response.
|
boolean |
success
Whether statusCode indicates success.
|
| Constructor and Description |
|---|
HttpPaginatedResponse() |
| Modifier and Type | Method and Description |
|---|---|
abstract HttpPaginatedResponse |
current() |
abstract HttpPaginatedResponse |
first()
Perform the given relative query
|
abstract boolean |
hasCurrent() |
abstract boolean |
hasFirst() |
abstract boolean |
hasNext() |
abstract boolean |
isLast() |
abstract com.google.gson.JsonElement[] |
items()
Contains a page of results; for example,
an array of
Message or PresenceMessage objects for a channel history request. |
abstract HttpPaginatedResponse |
next() |
public boolean success
Spec: HP5
public int statusCode
Spec: HP4
public int errorCode
Spec: HP6
public java.lang.String errorMessage
Spec: HP7
public Param[] headers
Spec: HP8
public abstract com.google.gson.JsonElement[] items()
Message or PresenceMessage objects for a channel history request.
Spec: HP3
public abstract HttpPaginatedResponse first() throws AblyException
AblyExceptionpublic abstract HttpPaginatedResponse current() throws AblyException
AblyExceptionpublic abstract HttpPaginatedResponse next() throws AblyException
AblyExceptionpublic abstract boolean hasFirst()
public abstract boolean hasCurrent()
public abstract boolean hasNext()
public abstract boolean isLast()