Class PopulationClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.AbstractContainerClient
-
- com.github.dannil.scbjavaclient.client.population.PopulationClient
-
public class PopulationClient extends AbstractContainerClient
Client which handles population data fetching.
- Since:
- 0.0.2
-
-
Constructor Summary
Constructors Constructor Description PopulationClient()Default constructor.PopulationClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLEndpointgetUrl()Returns the URL endpoint which this client represents.PopulationNameClientname()Retrieve the client for interacting with population statistics name data.PopulationProjectionsClientprojections()Retrieve the client for interacting with population projections data.PopulationStatisticsClientstatistics()Retrieve the client for interacting with population statistics data.-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractContainerClient
addClient, getClient, setLocale
-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractClient
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocalizationLocale
-
-
-
-
Constructor Detail
-
PopulationClient
public PopulationClient()
Default constructor. Initializes values and creates sub-clients.
-
PopulationClient
public PopulationClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
name
public PopulationNameClient name()
Retrieve the client for interacting with population statistics name data.
- Returns:
- a client for population statistics name data
-
projections
public PopulationProjectionsClient projections()
Retrieve the client for interacting with population projections data.
- Returns:
- a client for population projections data
-
statistics
public PopulationStatisticsClient statistics()
Retrieve the client for interacting with population statistics data.
- Returns:
- a client for population statistics data
-
getUrl
public URLEndpoint getUrl()
Description copied from class:AbstractClientReturns the URL endpoint which this client represents.
- Specified by:
getUrlin classAbstractClient- Returns:
- the URL endpoint for this client
-
-