public static final class GIS.RegionService extends Object
The Region Webservice is used in the Geo Information Service API to get informations about available regions.
| Modifier and Type | Method and Description |
|---|---|
static Region |
get(AbstractClient client,
long is24ContinentId,
long is24CountryId,
long is24RegionId)
Call the GET method of the Region Webservice.
|
static Regions |
getAll(AbstractClient client,
long is24ContinentId,
long is24CountryId)
Call the GETall method of the Region Webservice.
|
public static Region get(AbstractClient client, long is24ContinentId, long is24CountryId, long is24RegionId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific region.
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
GIS.CountryServiceis24RegionId - ID of the region to lookup, that was returned by
getAll(org.openestate.is24.restapi.AbstractClient, long, 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 Regions getAll(AbstractClient client, long is24ContinentId, long is24CountryId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns the list of available regions for a 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
GIS.CountryServiceIOException - 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.