Interface HttpCacheEngine


public interface HttpCacheEngine
Access gateway and controlling module for http cache sub-system. Coordinates with cache store, cache handling rules, cache configs and cache invalidators.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResponse(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, HttpCacheConfig cacheConfig)
    Cache the given response.
    boolean
    deliverCacheContent(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, HttpCacheConfig cacheConfig)
    Deliver the response from the cache.
    getCacheConfig(org.apache.sling.api.SlingHttpServletRequest request)
    Get the first, based on cache config order, cache config applicable for the given request.
    getCacheConfig(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig.FilterScope filterScope)
    Get the first, based on cache config order, cache config applicable for the given request.
    void
    Invalidate the cache for the HttpCacheConfig which is interested in the given path.
    boolean
    isCacheHit(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
    Check if the given request can be served from available cache.
    boolean
    Check if the supplied JCR repository path has the potential to invalidate cache.
    boolean
    isRequestCacheable(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
    Check if the given request is cache-able per custom cache handling rules.
    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.