public class ResponseCache extends ResponseCache
ResponseCache| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ResponseCache |
create(File directory,
long maxSize) |
void |
delete() |
void |
flush() |
CacheResponse |
get(URI uri,
String requestMethod,
Map<String,List<String>> requestHeaders) |
Cache |
getCache() |
int |
getHitCount() |
int |
getNetworkCount() |
int |
getRequestCount() |
boolean |
isEquivalent(File directory,
long maxSize) |
long |
maxSize() |
CacheRequest |
put(URI uri,
URLConnection urlConnection) |
long |
size() |
getDefault, setDefaultpublic static ResponseCache create(File directory, long maxSize)
public boolean isEquivalent(File directory, long maxSize)
public Cache getCache()
public 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()
throws IOException
IOExceptionpublic long maxSize()
public void flush()
throws IOException
IOExceptionpublic int getNetworkCount()
public int getHitCount()
public int getRequestCount()
public void close()
throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.