public interface HttpCacheHandlingRule
Each method represents a hook to the http cache event.In case if a method is not applicable for a custom rule, make it return true indicating the cache engine to continue processing the next rule.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onCacheDeliver(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig,
CacheContent cacheContent)
Hook to supply custom behavior on
HttpCacheEngine delivering cache
content after being read from cache store. |
boolean |
onCacheInvalidate(String path)
Hook to supply custom behavior on
HttpCacheEngine invalidating
cache for the changes in the given JCR repository path. |
boolean |
onRequestReceive(org.apache.sling.api.SlingHttpServletRequest request)
Hook to supply custom behavior on
HttpCacheEngine receiving the
request. |
boolean |
onResponseCache(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig,
CacheContent cacheContent)
Hook to supply custom behavior on
HttpCacheEngine about to cache a
response. |
boolean onRequestReceive(org.apache.sling.api.SlingHttpServletRequest request)
HttpCacheEngine receiving the
request.request - boolean onResponseCache(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig,
CacheContent cacheContent)
HttpCacheEngine about to cache a
response.request - response - cacheConfig - cacheContent - Object carring data to be cached.boolean onCacheDeliver(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig,
CacheContent cacheContent)
HttpCacheEngine delivering cache
content after being read from cache store.request - response - cacheConfig - cacheContent - Object carrying data to be delivered.boolean onCacheInvalidate(String path)
HttpCacheEngine invalidating
cache for the changes in the given JCR repository path.path - JCR repository pathCopyright © 2013–2020 Adobe. All rights reserved.