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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CacheTypeReturns a type of current CachebooleanisUpToDate(CacheKey cacheKey, XmlDownloadResult downloadedResult) Checks if the file with the givencacheKeyis 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 givencacheKeyis up to date- Parameters:
cacheKey-CacheKeydownloadedResult-XmlDownloadResultvalue to compare with- Returns:
- TRUE if digests match (file is up to date), FALSE otherwise
-
getCacheType
Description copied from class:AbstractCacheReturns a type of current Cache- Specified by:
getCacheTypein classAbstractCache<XmlDownloadResult>- Returns:
CacheType
-