public class AbstractHttpCacheHandlingRule extends Object implements HttpCacheHandlingRule
All methods in this
return true indicating that this does nothing other than instructing the HttpCacheEngine to move on with next rule. Any custom implementation could
leverage this to facilitate overriding only the methods the custom rule is intended for.
| Constructor and Description |
|---|
AbstractHttpCacheHandlingRule() |
| 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. |
public boolean onRequestReceive(org.apache.sling.api.SlingHttpServletRequest request)
HttpCacheHandlingRuleHttpCacheEngine receiving the
request.onRequestReceive in interface HttpCacheHandlingRulepublic boolean onResponseCache(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig,
CacheContent cacheContent)
HttpCacheHandlingRuleHttpCacheEngine about to cache a
response.onResponseCache in interface HttpCacheHandlingRulecacheContent - Object carring data to be cached.public boolean onCacheDeliver(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig,
CacheContent cacheContent)
HttpCacheHandlingRuleHttpCacheEngine delivering cache
content after being read from cache store.onCacheDeliver in interface HttpCacheHandlingRulecacheContent - Object carrying data to be delivered.public boolean onCacheInvalidate(String path)
HttpCacheHandlingRuleHttpCacheEngine invalidating
cache for the changes in the given JCR repository path.onCacheInvalidate in interface HttpCacheHandlingRulepath - JCR repository pathCopyright © 2013–2020 Adobe. All rights reserved.