Package org.opencms.pdftools
Class CmsPdfThumbnailCache
- java.lang.Object
-
- org.opencms.cache.CmsVfsNameBasedDiskCache
-
- org.opencms.pdftools.CmsPdfThumbnailCache
-
public class CmsPdfThumbnailCache extends CmsVfsNameBasedDiskCache
Cache for PDF thumbnails.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PDF_CACHE_FOLDER
The folder name for the cache folder.
-
Constructor Summary
Constructors Constructor Description CmsPdfThumbnailCache()
Creates a new cache instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCacheName(CmsResource resource, java.lang.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 Detail
-
PDF_CACHE_FOLDER
public static final java.lang.String PDF_CACHE_FOLDER
The folder name for the cache folder.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsPdfThumbnailCache
public CmsPdfThumbnailCache()
Creates a new cache instance.
-
-
Method Detail
-
getCacheName
public java.lang.String getCacheName(CmsResource resource, java.lang.String parameters)
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:
CmsVfsNameBasedDiskCache.getCacheName(org.opencms.file.CmsResource, java.lang.String)
-
-