Package org.opencms.pdftools
Class CmsPdfCache
java.lang.Object
org.opencms.cache.CmsVfsNameBasedDiskCache
org.opencms.pdftools.CmsPdfCache
Cache class for storing generated PDFs in the RFS.
This class stores all cached files in a single folder.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCacheName
(CmsResource resource, String parameters) Returns the RFS name to use for caching the given VFS resource with parameters in the disk cache.Methods inherited from class org.opencms.cache.CmsVfsNameBasedDiskCache
getCacheContent, getRepositoryPath, hasCacheContent, saveCacheFile
-
Field Details
-
PDF_CACHE_FOLDER
The folder name for the cache folder.- See Also:
-
-
Constructor Details
-
CmsPdfCache
public CmsPdfCache()Creates a new cache instance.
-
-
Method Details
-
getCacheName
Description copied from class:CmsVfsNameBasedDiskCache
Returns the RFS name to use for caching the given VFS resource with parameters in the disk cache.- Overrides:
getCacheName
in classCmsVfsNameBasedDiskCache
- Parameters:
resource
- the VFS resource to generate the cache name forparameters
- the parameters of the request to the VFS resource- Returns:
- the RFS name to use for caching the given VFS resource with parameters
- See Also:
-