com.atlassian.plugin.webresource.cache
Class CacheHandle.Builder
java.lang.Object
com.atlassian.plugin.webresource.cache.CacheHandle.Builder
- Enclosing interface:
- CacheHandle
public static class CacheHandle.Builder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheHandle.Builder
public CacheHandle.Builder()
passthrough
public static CacheHandle passthrough()
- does not cache, calls the stream provider directly
forRequest
public static CacheHandle forRequest(FileCache<FileCacheKey> cache,
String downloadtype,
String path,
Map<String,String> params)
- inspects the request, and if appropriate, returns a CacheHandle that will
cache resources to the cache.
If not approriate, a passthrough() handle is returned.
Copyright © 2013 Atlassian. All Rights Reserved.