com.atlassian.plugin.webresource.cache
Class CacheHandle.Builder

java.lang.Object
  extended by com.atlassian.plugin.webresource.cache.CacheHandle.Builder
Enclosing interface:
CacheHandle

public static class CacheHandle.Builder
extends Object


Constructor Summary
CacheHandle.Builder()
           
 
Method Summary
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.
static CacheHandle passthrough()
          does not cache, calls the stream provider directly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheHandle.Builder

public CacheHandle.Builder()
Method Detail

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.