Class ShadowHttpResponseCache


  • @Implements(value=android.net.http.HttpResponseCache.class,
                callThroughByDefault=false)
    public class ShadowHttpResponseCache
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowHttpResponseCache

        public ShadowHttpResponseCache()
    • 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)