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 CacheType
getCacheType()
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()
-
-
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
-