android.net.http
Class HttpResponseCache

java.lang.Object
  extended by java.net.ResponseCache
      extended by android.net.http.HttpResponseCache
All Implemented Interfaces:
Closeable

public final class HttpResponseCache
extends ResponseCache
implements Closeable


Method Summary
 void close()
           
 void delete()
           
 void flush()
           
 CacheResponse get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders)
           
 int getHitCount()
           
static HttpResponseCache getInstalled()
           
 int getNetworkCount()
           
 int getRequestCount()
           
static HttpResponseCache install(File directory, long maxSize)
           
 long maxSize()
           
 CacheRequest put(URI uri, URLConnection urlConnection)
           
 long size()
           
 
Methods inherited from class java.net.ResponseCache
getDefault, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstalled

public static HttpResponseCache getInstalled()

install

public static HttpResponseCache install(File directory,
                                        long maxSize)
                                 throws IOException
Throws:
IOException

get

public CacheResponse get(URI uri,
                         String requestMethod,
                         Map<String,List<String>> requestHeaders)
                  throws IOException
Specified by:
get in class ResponseCache
Throws:
IOException

put

public CacheRequest put(URI uri,
                        URLConnection urlConnection)
                 throws IOException
Specified by:
put in class ResponseCache
Throws:
IOException

size

public long size()

maxSize

public long maxSize()

flush

public void flush()

getNetworkCount

public int getNetworkCount()

getHitCount

public int getHitCount()

getRequestCount

public int getRequestCount()

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

delete

public void delete()
            throws IOException
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.