Package eu.europa.esig.dss.tsl.cache
Class DownloadCache
java.lang.Object
eu.europa.esig.dss.tsl.cache.AbstractCache<XmlDownloadResult>
eu.europa.esig.dss.tsl.cache.DownloadCache
The DownloadCache to store files
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CacheType
Returns a type of current Cacheboolean
isUpToDate
(CacheKey cacheKey, XmlDownloadResult downloadedResult) Checks if the file with the givencacheKey
is up to dateMethods inherited from class eu.europa.esig.dss.tsl.cache.AbstractCache
dump, error, expire, get, getKeys, isDesync, isEmpty, isRefreshNeeded, isToBeDeleted, remove, sync, toBeDeleted, update
-
Constructor Details
-
DownloadCache
public DownloadCache()Default constructor
-
-
Method Details
-
isUpToDate
Checks if the file with the givencacheKey
is up to date- Parameters:
cacheKey
-CacheKey
downloadedResult
-XmlDownloadResult
value to compare with- Returns:
- TRUE if digests match (file is up to date), FALSE otherwise
-
getCacheType
Description copied from class:AbstractCache
Returns a type of current Cache- Specified by:
getCacheType
in classAbstractCache<XmlDownloadResult>
- Returns:
CacheType
-