fr.paris.lutece.plugins.document.modules.ckan.rs
Class CkanRest

java.lang.Object
  extended by fr.paris.lutece.plugins.document.modules.ckan.rs.CkanRest

public class CkanRest
extends Object

Ckan Web services API implementation


Constructor Summary
CkanRest()
           
 
Method Summary
 String getPackageList(int nVersion)
          Get package list
 String getPackageShow(int nVersion, String strIdPackage)
          Get a given package
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CkanRest

public CkanRest()
Method Detail

getPackageList

public String getPackageList(int nVersion)
Get package list

Parameters:
nVersion - The API version
Returns:
the list in JSON format

getPackageShow

public String getPackageShow(int nVersion,
                             String strIdPackage)
                      throws SAXException
Get a given package

Parameters:
nVersion - The API version
strIdPackage - The package ID
Returns:
The package data in JSON format
Throws:
SAXException - If an error occurs


Copyright © 2013 Mairie de Paris. All Rights Reserved.