public static final class GIS.CountryService extends Object
The Country Webservice is used in the Geo Information Service API to get informations about available countries.
| Modifier and Type | Method and Description |
|---|---|
static Country |
get(AbstractClient client,
long is24ContinentId,
long is24CountryId)
Call the GET method of the Country Webservice.
|
static Countries |
getAll(AbstractClient client,
long is24ContinentId)
Call the GETall method of the Country Webservice.
|
public static Country get(AbstractClient client, long is24ContinentId, long is24CountryId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific country.
client - AbstractClient, that is used to communicate with the Webserviceis24ContinentId - ID of the continent to lookup, that was returned by
GIS.ContinentServiceis24CountryId - ID of the country to lookup, that was returned by
getAll(org.openestate.is24.restapi.AbstractClient, long)IOException - if communication with the Webservice failedoauth.signpost.exception.OAuthException - if authorization failedJAXBException - if XML reading / writing failedRequestFailedException - if the Webservice did not respond with a success messagepublic static Countries getAll(AbstractClient client, long is24ContinentId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns the list of available countries for a continent.
client - AbstractClient, that is used to communicate with the Webserviceis24ContinentId - ID of the continent to lookup, that was returned by
GIS.ContinentServiceIOException - if communication with the Webservice failedoauth.signpost.exception.OAuthException - if authorization failedJAXBException - if XML reading / writing failedRequestFailedException - if the Webservice did not respond with a success messageCopyright © 2018 OpenEstate. All rights reserved.