Class EnvironmentGreenhouseGasClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.environment.greenhousegas.EnvironmentGreenhouseGasClient
-
public class EnvironmentGreenhouseGasClient extends AbstractClient
Client which handles environment greenhouse gas data fetching.
- Since:
- 0.4.0
-
-
Constructor Summary
Constructors Constructor Description EnvironmentGreenhouseGasClient()Default constructor.EnvironmentGreenhouseGasClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getEmissionsFromAgriculture()Fetch all emissions from agriculture data.List<ResponseModel>getEmissionsFromAgriculture(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)Fetch all emissions from agriculture data which match the input constraints.List<ResponseModel>getEmissionsFromDomesticTransport()Fetch all emissions from domestic transport data.List<ResponseModel>getEmissionsFromDomesticTransport(Collection<String> greenhouseGases, Collection<String> modesOfTransports, Collection<Integer> years)Fetch all emissions from domestic transport data which match the input constraints.List<ResponseModel>getEmissionsFromElectricityAndHeating()Fetch all emissions from electricity and heating data.List<ResponseModel>getEmissionsFromElectricityAndHeating(Collection<String> greenhouseGases, Collection<String> fuelTypes, Collection<Integer> years)Fetch all emissions from electricity and heating data which match the input constraints.List<ResponseModel>getEmissionsFromHeatingOfHousesAndBuildings()Fetch all emissions from heating of houses and buildings data.List<ResponseModel>getEmissionsFromHeatingOfHousesAndBuildings(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)Fetch all emissions from heating of houses and buildings data which match the input constraints.List<ResponseModel>getEmissionsFromIndustry()Fetch all emissions from industry data.List<ResponseModel>getEmissionsFromIndustry(Collection<String> greenhouseGases, Collection<String> industries, Collection<Integer> years)Fetch all emissions from industry data which match the input constraints.List<ResponseModel>getEmissionsFromInternationalTransport()Fetch all emissions from international transport data.List<ResponseModel>getEmissionsFromInternationalTransport(Collection<String> greenhouseGases, Collection<String> activities, Collection<Integer> years)Fetch all emissions from international transport data which match the input constraints.List<ResponseModel>getEmissionsFromLandUse()Fetch all emissions from land use data.List<ResponseModel>getEmissionsFromLandUse(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)Fetch all emissions from land use data which match the input constraints.List<ResponseModel>getEmissionsFromOffroadVehiclesAndMachinery()Fetch all emissions from off-road vehicles and machinery data.List<ResponseModel>getEmissionsFromOffroadVehiclesAndMachinery(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)Fetch all emissions from off-road vehicles and machinery data which match the input constraints.List<ResponseModel>getEmissionsFromSolventUse()Fetch all emissions from solvent use data.List<ResponseModel>getEmissionsFromSolventUse(Collection<String> greenhouseGases, Collection<String> areas, Collection<Integer> years)Fetch all emissions from solvent use data which match the input constraints.List<ResponseModel>getEmissionsFromWaste()Fetch all emissions from waste data.List<ResponseModel>getEmissionsFromWaste(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)Fetch all emissions from waste data which match the input constraints.List<ResponseModel>getTotalEmissions()Fetch all total emissions data.List<ResponseModel>getTotalEmissions(Collection<String> greenhouseGases, Collection<String> sectors, Collection<Integer> years)Fetch all total emissions data which match the input constraints.URLEndpointgetUrl()Returns the URL endpoint which this client represents.-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractClient
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocale, setLocalizationLocale
-
-
-
-
Constructor Detail
-
EnvironmentGreenhouseGasClient
public EnvironmentGreenhouseGasClient()
Default constructor.
-
EnvironmentGreenhouseGasClient
public EnvironmentGreenhouseGasClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getTotalEmissions
public List<ResponseModel> getTotalEmissions()
Fetch all total emissions data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getTotalEmissions(Collection, Collection, Collection)
-
getTotalEmissions
public List<ResponseModel> getTotalEmissions(Collection<String> greenhouseGases, Collection<String> sectors, Collection<Integer> years)
Fetch all total emissions data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasessectors- the sectorsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromWaste
public List<ResponseModel> getEmissionsFromWaste()
Fetch all emissions from waste data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromWaste(Collection, Collection, Collection)
-
getEmissionsFromWaste
public List<ResponseModel> getEmissionsFromWaste(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)
Fetch all emissions from waste data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasessubSectors- the sub sectorsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromHeatingOfHousesAndBuildings
public List<ResponseModel> getEmissionsFromHeatingOfHousesAndBuildings()
Fetch all emissions from heating of houses and buildings data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromHeatingOfHousesAndBuildings(Collection, Collection, Collection)
-
getEmissionsFromHeatingOfHousesAndBuildings
public List<ResponseModel> getEmissionsFromHeatingOfHousesAndBuildings(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)
Fetch all emissions from heating of houses and buildings data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasessubSectors- the sub sectorsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromLandUse
public List<ResponseModel> getEmissionsFromLandUse()
Fetch all emissions from land use data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromLandUse(Collection, Collection, Collection)
-
getEmissionsFromLandUse
public List<ResponseModel> getEmissionsFromLandUse(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)
Fetch all emissions from land use data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasessubSectors- the sub sectorsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromDomesticTransport
public List<ResponseModel> getEmissionsFromDomesticTransport()
Fetch all emissions from domestic transport data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromDomesticTransport(Collection, Collection, Collection)
-
getEmissionsFromDomesticTransport
public List<ResponseModel> getEmissionsFromDomesticTransport(Collection<String> greenhouseGases, Collection<String> modesOfTransports, Collection<Integer> years)
Fetch all emissions from domestic transport data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasesmodesOfTransports- the modes of transportsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromAgriculture
public List<ResponseModel> getEmissionsFromAgriculture()
Fetch all emissions from agriculture data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromAgriculture(Collection, Collection, Collection)
-
getEmissionsFromAgriculture
public List<ResponseModel> getEmissionsFromAgriculture(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)
Fetch all emissions from agriculture data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasessubSectors- the sub sectorsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromInternationalTransport
public List<ResponseModel> getEmissionsFromInternationalTransport()
Fetch all emissions from international transport data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromInternationalTransport(Collection, Collection, Collection)
-
getEmissionsFromInternationalTransport
public List<ResponseModel> getEmissionsFromInternationalTransport(Collection<String> greenhouseGases, Collection<String> activities, Collection<Integer> years)
Fetch all emissions from international transport data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasesactivities- the activitiesyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromSolventUse
public List<ResponseModel> getEmissionsFromSolventUse()
Fetch all emissions from solvent use data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromSolventUse(Collection, Collection, Collection)
-
getEmissionsFromSolventUse
public List<ResponseModel> getEmissionsFromSolventUse(Collection<String> greenhouseGases, Collection<String> areas, Collection<Integer> years)
Fetch all emissions from solvent use data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasesareas- the areasyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromOffroadVehiclesAndMachinery
public List<ResponseModel> getEmissionsFromOffroadVehiclesAndMachinery()
Fetch all emissions from off-road vehicles and machinery data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromOffroadVehiclesAndMachinery(Collection, Collection, Collection)
-
getEmissionsFromOffroadVehiclesAndMachinery
public List<ResponseModel> getEmissionsFromOffroadVehiclesAndMachinery(Collection<String> greenhouseGases, Collection<String> subSectors, Collection<Integer> years)
Fetch all emissions from off-road vehicles and machinery data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasessubSectors- the sub sectorsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromIndustry
public List<ResponseModel> getEmissionsFromIndustry()
Fetch all emissions from industry data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromIndustry(Collection, Collection, Collection)
-
getEmissionsFromIndustry
public List<ResponseModel> getEmissionsFromIndustry(Collection<String> greenhouseGases, Collection<String> industries, Collection<Integer> years)
Fetch all emissions from industry data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasesindustries- the industriesyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getEmissionsFromElectricityAndHeating
public List<ResponseModel> getEmissionsFromElectricityAndHeating()
Fetch all emissions from electricity and heating data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getEmissionsFromElectricityAndHeating(Collection, Collection, Collection)
-
getEmissionsFromElectricityAndHeating
public List<ResponseModel> getEmissionsFromElectricityAndHeating(Collection<String> greenhouseGases, Collection<String> fuelTypes, Collection<Integer> years)
Fetch all emissions from electricity and heating data which match the input constraints.
- Parameters:
greenhouseGases- the greenhouse gasesfuelTypes- the fuel typesyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
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
-
-