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 java.lang.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 java.net.CacheResponseget(java.net.URI uri, java.lang.String requestMethod, java.util.Map<java.lang.String,java.util.List<java.lang.String>> requestHeaders)protected intgetHitCount()protected static android.net.http.HttpResponseCachegetInstalled()protected intgetNetworkCount()protected intgetRequestCount()protected static android.net.http.HttpResponseCacheinstall(java.io.File directory, long maxSize)protected longmaxSize()protected java.net.CacheRequestput(java.net.URI uri, java.net.URLConnection urlConnection)protected longsize()
-
-
-
Method Detail
-
install
@Implementation protected static android.net.http.HttpResponseCache install(java.io.File directory, long maxSize)
-
getInstalled
@Implementation protected static android.net.http.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 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)
-
put
@Implementation protected java.net.CacheRequest put(java.net.URI uri, java.net.URLConnection urlConnection)
-
-