|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fao.fi.services.factsheet.client.FactsheetWebServiceClient
public class FactsheetWebServiceClient
FactsheetWebServiceClient in order to use the REST webservices offered at
http://www.fao.org/figis/ws/factsheets/
Usage Example:
FactsheetWebServiceClient c = new FactsheetWebServiceClient();
DomainList dl = c.retrieveDomainList();
Constructor Summary | |
---|---|
FactsheetWebServiceClient()
Default constructor. |
|
FactsheetWebServiceClient(java.lang.String restWebserverUrl)
The webservice endpoint might have been moved, use this constructor to explicitly point to a certain webservice endpoint. |
Method Summary | |
---|---|
org.w3c.dom.Document |
pickNodeListWithXpath(java.lang.String xpath)
Given the name of an element, this operation returns whatever element including its descendants. |
org.w3c.dom.Document |
pickNodeWithXpath(java.lang.String xpath)
The xpath result given the xpath expression, factsheet, domain, and language. |
org.fao.fi.factsheetwebservice.domain.DomainList |
retrieveDomainList()
Lists all the available domains |
org.w3c.dom.Document |
retrieveFactsheet(java.lang.String factsheet,
org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain,
org.fao.fi.factsheetwebservice.domain.FactsheetLanguage language)
The actual factsheet URL, given the factsheet, domain and language. |
org.fao.fi.factsheetwebservice.domain.FactsheetList |
retrieveFactsheetListPerDomain(org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain)
List of the available languages for that factsheet, given the domain. |
org.fao.fi.factsheetwebservice.domain.FactsheetList |
retrieveFactsheetListPerDomainAndLanguage(org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain,
org.fao.fi.factsheetwebservice.domain.FactsheetLanguage language)
List of the factsheets in all languages for the given domain and language. |
org.fao.fi.factsheetwebservice.domain.LanguageList |
retrieveLanguageListInDomain4ThisFactsheet(org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain,
java.lang.String factsheet)
List of the available languages for that factsheet, given the domain. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FactsheetWebServiceClient()
public FactsheetWebServiceClient(java.lang.String restWebserverUrl)
restWebserverUrl
- Method Detail |
---|
public org.fao.fi.factsheetwebservice.domain.DomainList retrieveDomainList()
public org.fao.fi.factsheetwebservice.domain.FactsheetList retrieveFactsheetListPerDomain(org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain)
public org.fao.fi.factsheetwebservice.domain.FactsheetList retrieveFactsheetListPerDomainAndLanguage(org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain, org.fao.fi.factsheetwebservice.domain.FactsheetLanguage language)
public org.fao.fi.factsheetwebservice.domain.LanguageList retrieveLanguageListInDomain4ThisFactsheet(org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain, java.lang.String factsheet)
public org.w3c.dom.Document retrieveFactsheet(java.lang.String factsheet, org.fao.fi.factsheetwebservice.domain.FactsheetDomain domain, org.fao.fi.factsheetwebservice.domain.FactsheetLanguage language)
request
-
public org.w3c.dom.Document pickNodeWithXpath(java.lang.String xpath)
public org.w3c.dom.Document pickNodeListWithXpath(java.lang.String xpath)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |