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
public class DownloadCache extends AbstractCache<XmlDownloadResult>
The DownloadCache to store files
-
Constructor Summary
Constructors Constructor Description DownloadCache() -
Method Summary
Modifier and Type Method Description protected CacheTypegetCacheType()Returns 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()
-
-
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
-