@Implements(value=android.net.http.HttpResponseCache.class, callThroughByDefault=false) public class ShadowHttpResponseCache extends Object
Constructor | Description |
---|---|
ShadowHttpResponseCache() |
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() |
@Implementation protected static HttpResponseCache install(File directory, long maxSize)
@Implementation protected static 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 CacheResponse get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)
@Implementation protected CacheRequest put(URI uri, URLConnection urlConnection)