Interface HttpCacheConfigExtension


public interface HttpCacheConfigExtension
Hook to supply custom extension to the HttpCacheConfig.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accepts(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig)
    Examine if this extension accepts the request.
  • Method Details

    • accepts

      boolean accepts(org.apache.sling.api.SlingHttpServletRequest request, HttpCacheConfig cacheConfig) throws HttpCacheRepositoryAccessException
      Examine if this extension accepts the request.

      Implementation of HttpCacheConfig.accept (SlingHttpServletRequest) method invokes this to check if the given cache config custom attributes matches with the given request.

      Parameters:
      request -
      cacheConfig -
      Returns:
      True if this cache config extension accepts the cache config custom attributes.
      Throws:
      HttpCacheRepositoryAccessException