|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.net.ResponseCache
org.jdesktop.swingx.mapviewer.LocalResponseCache
public class LocalResponseCache extends ResponseCache
| Nested Class Summary | |
|---|---|
private class |
LocalResponseCache.LocalCacheRequest
|
private class |
LocalResponseCache.LocalCacheResponse
|
| Field Summary | |
|---|---|
static File |
CHACHE_DIR
|
static boolean |
IS_CACHE_DISABLED
|
| Constructor Summary | |
private LocalResponseCache()
Private constructor to prevent instantiation. |
|
| Method Summary | |
|---|---|
CacheResponse
|
get(URI uri, String rqstMethod, Map rqstHeaders)
|
static File
|
getLocalFile(URI remoteUri)
Returns the local File corresponding to the given remote URI. |
static void
|
installResponseCache()
|
private static boolean
|
isUpdateAvailable(URI remoteUri, File localFile)
Returns true if the resource at the given remote URI is newer than the resource cached locally. |
CacheRequest
|
put(URI uri, URLConnection conn)
|
| Methods inherited from class ResponseCache | |
|---|---|
| get, put, getDefault, setDefault, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
public static final File CHACHE_DIR
public static final boolean IS_CACHE_DISABLED
| Constructor Detail |
|---|
private LocalResponseCache()
| Method Detail |
|---|
public CacheResponse get(URI uri, String rqstMethod, Map rqstHeaders)
public static File getLocalFile(URI remoteUri)
public static void installResponseCache()
private static boolean isUpdateAvailable(URI remoteUri, File localFile)
public CacheRequest put(URI uri, URLConnection conn)
Groovy Documentation