Package org.robolectric.shadows
Class ShadowHttpResponseCache
java.lang.Object
org.robolectric.shadows.ShadowHttpResponseCache
@Implements(value=android.net.http.HttpResponseCache.class, callThroughByDefault=false) public class ShadowHttpResponseCache extends Object
-
Constructor Summary
Constructors Constructor Description ShadowHttpResponseCache()
-
Method Summary
Modifier and Type Method Description protected void
close()
protected void
delete()
protected CacheResponse
get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)
protected int
getHitCount()
protected static HttpResponseCache
getInstalled()
protected int
getNetworkCount()
protected int
getRequestCount()
protected static HttpResponseCache
install(File directory, long maxSize)
protected long
maxSize()
protected CacheRequest
put(URI uri, URLConnection urlConnection)
protected long
size()
-
Constructor Details
-
ShadowHttpResponseCache
public ShadowHttpResponseCache()
-
-
Method Details
-
install
-
getInstalled
-
maxSize
-
size
-
close
-
delete
-
getHitCount
-
getNetworkCount
-
getRequestCount
-
get
@Implementation protected CacheResponse get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders) -
put
-