Class CacheUtils
- java.lang.Object
-
- com.adobe.acs.commons.httpcache.util.CacheUtils
-
public class CacheUtils extends Object
Utilties tied to caching keys / values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilecreateTemporaryCacheFile(CacheKey cacheKey)Create a temporary file for taking copy of servlet response stream.static Map<String,List<String>>extractHeaders(Collection<Pattern> excludedHeaderRegexList, Collection<String> excludedCookieKeyList, org.apache.sling.api.SlingHttpServletResponse response, HttpCacheConfig cacheConfig)static List<String>filterCookieHeaders(org.apache.sling.api.SlingHttpServletResponse response, List<String> excludedCookieKeys, String headerName)
-
-
-
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
-
extractHeaders
public static Map<String,List<String>> extractHeaders(Collection<Pattern> excludedHeaderRegexList, Collection<String> excludedCookieKeyList, org.apache.sling.api.SlingHttpServletResponse response, HttpCacheConfig cacheConfig)
-
-