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