Class ReadOnlyCacheAccessByKey
java.lang.Object
eu.europa.esig.dss.tsl.cache.access.ReadOnlyCacheAccessByKey
- Direct Known Subclasses:
CacheAccessByKey
public class ReadOnlyCacheAccessByKey extends Object
The class prevents reading of other records but the one with defined key
-
Field Summary
Fields Modifier and Type Field Description protected DownloadCache
downloadCache
Global download Cacheprotected CacheKey
key
Key of the CacheEntryprotected ParsingCache
parsingCache
Global parsing Cacheprotected ValidationCache
validationCache
Global validation Cache -
Constructor Summary
Constructors Constructor Description ReadOnlyCacheAccessByKey(CacheKey key, DownloadCache downloadCache, ParsingCache parsingCache, ValidationCache validationCache)
Default constructor -
Method Summary
Modifier and Type Method Description DownloadCacheDTO
getDownloadReadOnlyResult()
Returns the cached read-only download result DTOParsingCacheDTO
getParsingReadOnlyResult()
Returns the cached read-only parsing result DTOValidationCacheDTO
getValidationReadOnlyResult()
Returns the cached read-only validation result DTO
-
Field Details
-
key
Key of the CacheEntry -
downloadCache
Global download Cache -
parsingCache
Global parsing Cache -
validationCache
Global validation Cache
-
-
Constructor Details
-
ReadOnlyCacheAccessByKey
public ReadOnlyCacheAccessByKey(CacheKey key, DownloadCache downloadCache, ParsingCache parsingCache, ValidationCache validationCache)Default constructor- Parameters:
key
-CacheKey
to readdownloadCache
-DownloadCache
parsingCache
-ParsingCache
validationCache
-ValidationCache
-
-
Method Details
-
getDownloadReadOnlyResult
Returns the cached read-only download result DTO- Returns:
DownloadCacheDTO
-
getParsingReadOnlyResult
Returns the cached read-only parsing result DTO- Returns:
ParsingCacheDTO
-
getValidationReadOnlyResult
Returns the cached read-only validation result DTO- Returns:
ValidationCacheDTO
-