public final class HttpResponseCache extends ResponseCache implements Closeable
| Modifier and Type | Method and Description |
|---|---|
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() |
getDefault, setDefaultpublic static HttpResponseCache getInstalled()
public static HttpResponseCache install(File directory, long maxSize) throws IOException
IOExceptionpublic CacheResponse get(URI uri, String requestMethod, Map<String,List<String>> requestHeaders) throws IOException
get in class ResponseCacheIOExceptionpublic CacheRequest put(URI uri, URLConnection urlConnection) throws IOException
put in class ResponseCacheIOExceptionpublic long size()
public long maxSize()
public void flush()
public int getNetworkCount()
public int getHitCount()
public int getRequestCount()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void delete()
throws IOException
IOExceptionCopyright © 2008-2013. All Rights Reserved.