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 void
deleteDownloadCacheIfNeeded()
Removes the entry from downloadCache if its value is TO_BE_DELETEDvoid
deleteParsingCacheIfNeeded()
Removes the entry from parsingCache if its value is TO_BE_DELETEDvoid
deleteValidationCacheIfNeeded()
Removes the entry from parsingCache if its value is TO_BE_DELETEDvoid
downloadError(Exception e)
void
expireParsing()
void
expireValidation()
CacheKey
getCacheKey()
Returns the CacheKeyboolean
isFileNeedToBeDeleted()
Checks if the entry must be deleted from the file cache (download cache)boolean
isParsingRefreshNeeded()
boolean
isUpToDate(XmlDownloadResult xmlDownloadResult)
boolean
isValidationRefreshNeeded()
void
parsingError(Exception e)
void
update(XmlDownloadResult result)
void
update(AbstractParsingResult parsingResult)
void
update(ValidationResult validationResult)
void
validationError(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
-