public class URLCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
URLCache.Info |
static class |
URLCache.InfoDTO |
Modifier and Type | Field and Description |
---|---|
private static JSONCodec |
codec |
private java.util.concurrent.ConcurrentMap<java.io.File,URLCache.Info> |
infos |
private static org.slf4j.Logger |
logger |
private java.io.File |
root |
Constructor and Description |
---|
URLCache(java.io.File root) |
Modifier and Type | Method and Description |
---|---|
URLCache.Info |
get(java.io.File file,
java.net.URI uri) |
URLCache.Info |
get(java.net.URI uri) |
java.io.File |
getCacheFileFor(java.net.URI url) |
static java.lang.String |
toName(java.net.URI uri) |
static void |
update(java.io.File file,
java.lang.String tag) |
private static final org.slf4j.Logger logger
private static final JSONCodec codec
private final java.io.File root
private java.util.concurrent.ConcurrentMap<java.io.File,URLCache.Info> infos
public URLCache.Info get(java.net.URI uri) throws java.lang.Exception
java.lang.Exception
public URLCache.Info get(java.io.File file, java.net.URI uri) throws java.lang.Exception
java.lang.Exception
public static java.lang.String toName(java.net.URI uri) throws java.lang.Exception
java.lang.Exception
public static void update(java.io.File file, java.lang.String tag)
public java.io.File getCacheFileFor(java.net.URI url) throws java.lang.Exception
java.lang.Exception