Class CacheAccessByKey
java.lang.Object
eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccessByKey
eu.europa.esig.dss.tsl.cache.access.CacheAccessByKey
public class CacheAccessByKey extends ReadOnlyCacheAccessByKey
-
Field Summary
Fields inherited from class eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccessByKey
downloadCache, key, parsingCache, validationCache -
Constructor Summary
Constructors Constructor Description CacheAccessByKey(CacheKey key, DownloadCache downloadCache, ParsingCache parsingCache, ValidationCache validationCache) -
Method Summary
Modifier and Type Method Description voiddeleteDownloadCacheIfNeeded()Removes the entry from downloadCache if its value is TO_BE_DELETEDvoiddeleteParsingCacheIfNeeded()Removes the entry from parsingCache if its value is TO_BE_DELETEDvoiddeleteValidationCacheIfNeeded()Removes the entry from parsingCache if its value is TO_BE_DELETEDvoiddownloadError(Exception e)voidexpireParsing()voidexpireValidation()CacheKeygetCacheKey()Returns the CacheKeybooleanisFileNeedToBeDeleted()Checks if the entry must be deleted from the file cache (download cache)booleanisParsingRefreshNeeded()booleanisUpToDate(XmlDownloadResult xmlDownloadResult)booleanisValidationRefreshNeeded()voidparsingError(Exception e)voidupdate(XmlDownloadResult result)voidupdate(AbstractParsingResult parsingResult)voidupdate(ValidationResult validationResult)voidvalidationError(Exception e)Methods inherited from class eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccessByKey
getDownloadReadOnlyResult, getParsingReadOnlyResult, getValidationReadOnlyResult
-
Constructor Details
-
CacheAccessByKey
public CacheAccessByKey(CacheKey key, DownloadCache downloadCache, ParsingCache parsingCache, ValidationCache validationCache)
-
-
Method Details
-
getCacheKey
Returns the CacheKey- Returns:
CacheKey
-
isUpToDate
-
update
-
downloadError
-
isParsingRefreshNeeded
public boolean isParsingRefreshNeeded() -
update
-
expireParsing
public void expireParsing() -
parsingError
-
isValidationRefreshNeeded
public boolean isValidationRefreshNeeded() -
expireValidation
public void expireValidation() -
update
-
validationError
-
isFileNeedToBeDeleted
public boolean isFileNeedToBeDeleted()Checks if the entry must be deleted from the file cache (download cache)- Returns:
- TRUE if the entry need to be deleted, FALSE otherwise
-
deleteDownloadCacheIfNeeded
public void deleteDownloadCacheIfNeeded()Removes the entry from downloadCache if its value is TO_BE_DELETED -
deleteParsingCacheIfNeeded
public void deleteParsingCacheIfNeeded()Removes the entry from parsingCache if its value is TO_BE_DELETED -
deleteValidationCacheIfNeeded
public void deleteValidationCacheIfNeeded()Removes the entry from parsingCache if its value is TO_BE_DELETED
-