Class HttpPaginatedResponse

java.lang.Object
io.ably.lib.types.HttpPaginatedResponse
Direct Known Subclasses:
HttpPaginatedQuery.HttpPaginatedResult

public abstract class HttpPaginatedResponse
extends java.lang.Object
A superset of 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.
  • Field Summary

    Fields 
    Modifier and Type Field 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 Summary

    Constructors 
    Constructor Description
    HttpPaginatedResponse()  
  • Method Summary

    Modifier and Type Method 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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait