| Modifier and Type | Method and Description |
|---|---|
CacheKey |
HttpCacheConfig.buildCacheKey(org.apache.sling.api.SlingHttpServletRequest request)
Creates the CacheKey object using the CacheKeyFactory associated with this HttpCacheConfig factory instance.
|
CacheKey |
HttpCacheConfig.buildCacheKey(String resourcePath)
Creates the CacheKey object using the CacheKeyFactory associated with this HttpCacheConfig factory instance.
|
boolean |
HttpCacheConfig.knows(CacheKey key)
Returns true if the key is generated using this cache config.
|
| Constructor and Description |
|---|
GroupCacheKey(org.apache.sling.api.SlingHttpServletRequest request,
HttpCacheConfig cacheConfig,
List<String> userGroups) |
GroupCacheKey(String uri,
HttpCacheConfig cacheConfig,
List<String> userGroups) |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpCacheEngine.cacheResponse(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig)
Cache the given response.
|
boolean |
HttpCacheEngine.deliverCacheContent(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig cacheConfig)
Deliver the response from the cache.
|
void |
HttpCacheEngine.invalidateCache(String path)
Invalidate the cache for the HttpCacheConfig which is
interested in the given path.
|
boolean |
HttpCacheEngine.isCacheHit(org.apache.sling.api.SlingHttpServletRequest request,
HttpCacheConfig cacheConfig)
Check if the given request can be served from available cache.
|
HttpCacheServletResponseWrapper |
HttpCacheEngine.wrapResponse(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
HttpCacheConfig httpCacheConfig)
Wrap the response so that response stream can be duplicated.
|
| Modifier and Type | Method and Description |
|---|---|
CacheKey |
CacheKeyFactory.build(org.apache.sling.api.SlingHttpServletRequest request,
HttpCacheConfig cacheConfig)
Build a cache key.
|
CacheKey |
CacheKeyFactory.build(String resourcePath,
HttpCacheConfig cacheConfig)
Build a cache key.
|
boolean |
CacheKeyFactory.doesKeyMatchConfig(CacheKey key,
HttpCacheConfig cacheConfig)
Does the Cache Key matches the Http Cache Config.
|
Copyright © 2013–2020 Adobe. All rights reserved.