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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose()protected voiddelete()protected CacheResponseget(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)protected intgetHitCount()protected static HttpResponseCachegetInstalled()protected intgetNetworkCount()protected intgetRequestCount()protected static HttpResponseCacheinstall(File directory, long maxSize)protected longmaxSize()protected CacheRequestput(URI uri, URLConnection urlConnection)protected longsize()
-
-
-
Method Detail
-
install
@Implementation protected static HttpResponseCache install(File directory, long maxSize)
-
getInstalled
@Implementation protected static HttpResponseCache getInstalled()
-
maxSize
@Implementation protected long maxSize()
-
size
@Implementation protected long size()
-
close
@Implementation protected void close()
-
delete
@Implementation protected void delete()
-
getHitCount
@Implementation protected int getHitCount()
-
getNetworkCount
@Implementation protected int getNetworkCount()
-
getRequestCount
@Implementation protected int getRequestCount()
-
get
@Implementation protected CacheResponse get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)
-
put
@Implementation protected CacheRequest put(URI uri, URLConnection urlConnection)
-
-