public class SCBClient extends AbstractContainerClient
clientslocale, localization, ROOT_URL| Constructor and Description |
|---|
SCBClient()
Default constructor.
|
SCBClient(Locale locale)
Overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EnvironmentClient |
environment()
Retrieve the client for interacting with environment data.
|
String |
getRawData(String table)
Fetch the JSON response from the specified table.
|
String |
getRawData(String table,
Map<String,Collection<?>> query)
Fetch the JSON response from the specified table.
|
static boolean |
isSupportedLocale(Locale locale)
Checks if the specified locale is supported by the SCB API.
|
PopulationClient |
population()
Retrieve the client for interacting with population data.
|
setLocaleget, getBaseUrl, getLocale, getRegions, getYears, post, setLocalizationLanguagepublic SCBClient()
public SCBClient(Locale locale)
locale - the locale for this clientpublic EnvironmentClient environment()
public PopulationClient population()
public String getRawData(String table)
Fetch the JSON response from the specified table. As opposed to
getRawData(String, Map), this method fetches all available data and therefore
doesn't support selecting specific values before calling the API.
Do note: as this method matches all content codes available on the API, the response is likely to be several times larger than the response when selecting values.
table - the table to fetch data fromcom.github.dannil.scbjavaclient.utility.JsonUtility#getContentsCodes(String)
JsonUtility#getContentsCodes(String) }public String getRawData(String table, Map<String,Collection<?>> query)
table - the table to fetch data fromquery - the selected valuespublic static boolean isSupportedLocale(Locale locale)
locale - the locale to checkCopyright © 2016. All rights reserved.