android.net.http
Class HttpResponseCache
java.lang.Object
java.net.ResponseCache
android.net.http.HttpResponseCache
- All Implemented Interfaces:
- Closeable
public final class HttpResponseCache
- extends ResponseCache
- implements Closeable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.