io.clarify.api
Class BundleList

java.lang.Object
  extended by io.clarify.api.ClarifyModel
      extended by io.clarify.api.ClarifyPaginatedModel
          extended by io.clarify.api.BundleList

public class BundleList
extends ClarifyPaginatedModel

Represents a List Bundles Clarify API response type, allowing the caller to obtain the raw list of links and to paginate through the results.


Field Summary
 
Fields inherited from class io.clarify.api.ClarifyModel
client, response
 
Constructor Summary
BundleList(ClarifyClient client, ClarifyResponse response)
           
 
Method Summary
 BundleList nextPage()
          Attempt to request the next page using the next link from the current page
 
Methods inherited from class io.clarify.api.ClarifyPaginatedModel
getLinkItems, getLinks, hasNextPage, nextLink
 
Methods inherited from class io.clarify.api.ClarifyModel
getClarifyClient, getClarifyResponse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleList

public BundleList(ClarifyClient client,
                  ClarifyResponse response)
Method Detail

nextPage

public BundleList nextPage()
                    throws us.monoid.json.JSONException,
                           IOException
Attempt to request the next page using the next link from the current page

Returns:
a BundleList representing the next page, or null if there are no other pages
Throws:
us.monoid.json.JSONException - if the href for the next link could not be obtained for some reason
IOException - if a network failure occurred while fetching the next page


Copyright © 2015 Clarify Inc. All Rights Reserved.