Class GoodsAndServicesForeignTradeGoodsSITCClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.goodsandservices.foreigntradegoods.sitc.GoodsAndServicesForeignTradeGoodsSITCClient
-
public class GoodsAndServicesForeignTradeGoodsSITCClient extends AbstractClient
Client which handles goods and services foreign trade goods SITC (Standard International Trade Classification) data fetching.
- Since:
- 0.7.0
-
-
Constructor Summary
Constructors Constructor Description GoodsAndServicesForeignTradeGoodsSITCClient()Default constructor.GoodsAndServicesForeignTradeGoodsSITCClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getImportsAndExportsOfGoods()Fetch all imports and exports of goods data.List<ResponseModel>getImportsAndExportsOfGoods(Collection<String> commodityGroups, Collection<Integer> years)Fetch all imports and exports of goods 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
-
GoodsAndServicesForeignTradeGoodsSITCClient
public GoodsAndServicesForeignTradeGoodsSITCClient()
Default constructor.
-
GoodsAndServicesForeignTradeGoodsSITCClient
public GoodsAndServicesForeignTradeGoodsSITCClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getImportsAndExportsOfGoods
public List<ResponseModel> getImportsAndExportsOfGoods()
Fetch all imports and exports of goods data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getImportsAndExportsOfGoods(Collection, Collection)
-
getImportsAndExportsOfGoods
public List<ResponseModel> getImportsAndExportsOfGoods(Collection<String> commodityGroups, Collection<Integer> years)
Fetch all imports and exports of goods data which match the input constraints.
- Parameters:
commodityGroups- the commodity groupsyears- 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
-
-