Class CacheUtils


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

      • 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
      • filterCookieHeaders

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