Esri Geoportal Server
1.2.9

com.esri.gpt.control.webharvest.client.ckan
Class CkanIterator

java.lang.Object
  extended by com.esri.gpt.control.webharvest.client.ckan.CkanIterator
All Implemented Interfaces:
Iterable<CkanPackage>

public class CkanIterator
extends Object
implements Iterable<CkanPackage>

CKAN iterator.


Constructor Summary
CkanIterator(CkanConfig config, URL baseUrl)
           
CkanIterator(CkanConfig config, URL baseUrl, String q)
           
 
Method Summary
 Iterator<CkanPackage> iterator()
           
protected  String makePackageListUrl()
           
protected  String makePackageSearchUrl(String q, Long start, Long rows)
           
protected  String makePackageShowUrl(String packageId)
           
protected  HttpClientRequest newClientRequest(Bots bots)
           
protected  org.json.JSONObject readJsonData(Bots bots, String url)
           
protected  List<CkanPackage> readPackages(org.json.JSONArray pkgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CkanIterator

public CkanIterator(CkanConfig config,
                    URL baseUrl)

CkanIterator

public CkanIterator(CkanConfig config,
                    URL baseUrl,
                    String q)
Method Detail

iterator

public Iterator<CkanPackage> iterator()
Specified by:
iterator in interface Iterable<CkanPackage>

readPackages

protected List<CkanPackage> readPackages(org.json.JSONArray pkgs)
                                  throws org.json.JSONException
Throws:
org.json.JSONException

newClientRequest

protected HttpClientRequest newClientRequest(Bots bots)

readJsonData

protected org.json.JSONObject readJsonData(Bots bots,
                                           String url)
                                    throws IOException,
                                           org.json.JSONException
Throws:
IOException
org.json.JSONException

makePackageListUrl

protected String makePackageListUrl()

makePackageShowUrl

protected String makePackageShowUrl(String packageId)

makePackageSearchUrl

protected String makePackageSearchUrl(String q,
                                      Long start,
                                      Long rows)
                               throws IOException
Throws:
IOException

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.