Class CacheUtils

java.lang.Object
com.adobe.acs.commons.httpcache.util.CacheUtils

public class CacheUtils extends Object
Utilties tied to caching keys / values.
  • Method Details

    • createTemporaryCacheFile

      public static File createTemporaryCacheFile(CacheKey cacheKey) throws IOException
      Create a temporary file for taking copy of servlet response stream.
      Parameters:
      cacheKey -
      Returns:
      Throws:
      IOException
    • extractHeaders

      public static Map<String,List<String>> extractHeaders(Collection<Pattern> excludedHeaderRegexList, Collection<String> excludedCookieKeyList, org.apache.sling.api.SlingHttpServletResponse response, HttpCacheConfig cacheConfig)
    • filterCookieHeaders

      public static List<String> filterCookieHeaders(org.apache.sling.api.SlingHttpServletResponse response, List<String> excludedCookieKeys, String headerName)