Groovy Documentation

org.jdesktop.swingx.mapviewer
[Java] Class LocalResponseCache

java.lang.Object
  java.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

CHACHE_DIR

public static final File CHACHE_DIR


IS_CACHE_DISABLED

public static final boolean IS_CACHE_DISABLED


 
Constructor Detail

LocalResponseCache

private LocalResponseCache()
Private constructor to prevent instantiation.


 
Method Detail

get

public CacheResponse get(URI uri, String rqstMethod, Map rqstHeaders)


getLocalFile

public static File getLocalFile(URI remoteUri)
Returns the local File corresponding to the given remote URI.


installResponseCache

public static void installResponseCache()


isUpdateAvailable

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.


put

public CacheRequest put(URI uri, URLConnection conn)


 

Groovy Documentation