public interface ICacheDataHandler
Exposes members for caching rendering results.
Modifier and Type | Method and Description |
---|---|
void |
clearCache(long olderThan)
Clears cache.
|
boolean |
exists(CacheFileDescription cachedPageDescription)
Checks whether specified file description existed in cache.
|
String |
getFilePath(CacheFileDescription cacheFileDescription)
Gets the path to the cached document.
|
List<CachedPageResourceDescription> |
getHtmlPageResources(CachedPageDescription cachedPageDescription)
Gets the HTML page resources descriptions.
|
String |
getHtmlPageResourcesFolder(CachedPageDescription cachedPageDescription)
Gets the HTML page resources folder path.
|
InputStream |
getInputStream(CacheFileDescription cachedPageDescription)
Gets the input stream.
|
Date |
getLastModificationDate(CacheFileDescription cachedPageDescription)
Gets the last modification date.
|
OutputStream |
getOutputSaveStream(CacheFileDescription cachedPageDescription)
Gets the output save stream.
|
boolean exists(CacheFileDescription cachedPageDescription) throws Exception
cachedPageDescription
- The cache file description.Exception
- if any.InputStream getInputStream(CacheFileDescription cachedPageDescription) throws Exception
cachedPageDescription
- The cache file description.Exception
- if any.OutputStream getOutputSaveStream(CacheFileDescription cachedPageDescription) throws Exception
cachedPageDescription
- The cache file description.Exception
- if any.Date getLastModificationDate(CacheFileDescription cachedPageDescription) throws Exception
cachedPageDescription
- The cache file description.Exception
- if any.String getHtmlPageResourcesFolder(CachedPageDescription cachedPageDescription) throws Exception
List<CachedPageResourceDescription> getHtmlPageResources(CachedPageDescription cachedPageDescription) throws Exception
cachedPageDescription
- The cached page descriptionException
- if any.String getFilePath(CacheFileDescription cacheFileDescription) throws Exception
Copyright © 2018. All rights reserved.