public class ECBAmountMoneyExchangeRateRetriever extends CachedOnlineAmountMoneyExchangeRateRetriever
| Modifier and Type | Field and Description |
|---|---|
static String |
INITIAL_RESOURCE_RESOURCE_NAME_DEFAULT |
FILE_CACHE_EXPIRATION_MILLIS_DEFAULT| Constructor and Description |
|---|
ECBAmountMoneyExchangeRateRetriever(File fileCacheFile) |
ECBAmountMoneyExchangeRateRetriever(File fileCacheFile,
long fileCacheExpirationMillis) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.lang3.tuple.Pair<Map<org.jscience.economics.money.Currency,Double>,org.jscience.economics.money.Currency> |
fetchResult()
Allows to retrieve the complete cache at once which makes sense for
subclasses which will retrieve a list of currency exchange rates rather
than a single result (probably all).
|
protected String |
getUrl() |
fetchConversionRate, getResult, getSupportedCurrenciesretrieveExchangeRatepublic static final String INITIAL_RESOURCE_RESOURCE_NAME_DEFAULT
public ECBAmountMoneyExchangeRateRetriever(File fileCacheFile)
public ECBAmountMoneyExchangeRateRetriever(File fileCacheFile, long fileCacheExpirationMillis)
protected org.apache.commons.lang3.tuple.Pair<Map<org.jscience.economics.money.Currency,Double>,org.jscience.economics.money.Currency> fetchResult() throws AmountMoneyExchangeRateRetrieverException, AmountMoneyExchangeRateRetrievalException
CachedOnlineAmountMoneyExchangeRateRetrieverfetchResult in class CachedOnlineAmountMoneyExchangeRateRetrieverAmountMoneyExchangeRateRetrieverException - if an exception
unrelated to a network failure or missing network connection occuredAmountMoneyExchangeRateRetrievalException - if an exception related
to a network failure or missing network connection occuredprotected String getUrl()
getUrl in class CachedOnlineAmountMoneyExchangeRateRetrieverCopyright © 2018. All rights reserved.