Package aQute.bnd.http
Class URLCache
- java.lang.Object
-
- aQute.bnd.http.URLCache
-
public class URLCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classURLCache.Infostatic classURLCache.InfoDTO
-
Constructor Summary
Constructors Constructor Description URLCache(java.io.File root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclear(java.net.URI uri)URLCache.Infoget(java.io.File file, java.net.URI uri)URLCache.Infoget(java.net.URI uri)java.io.FilegetCacheFileFor(java.net.URI url)java.io.FilegetCacheInfoFileFor(java.net.URI url)java.util.Map<java.io.File,URLCache.Info>infos()booleanisCached(java.net.URI url)static java.lang.StringtoName(java.net.URI uri)static voidupdate(java.io.File file, java.lang.String tag)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
codec
private static final JSONCodec codec
-
root
private final java.io.File root
-
infos
private java.util.concurrent.ConcurrentMap<java.io.File,URLCache.Info> infos
-
-
Method Detail
-
get
public URLCache.Info get(java.net.URI uri) throws java.lang.Exception
- Throws:
java.lang.Exception
-
infos
public java.util.Map<java.io.File,URLCache.Info> infos()
-
get
public URLCache.Info get(java.io.File file, java.net.URI uri) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toName
public static java.lang.String toName(java.net.URI uri) throws java.lang.Exception- Throws:
java.lang.Exception
-
update
public static void update(java.io.File file, java.lang.String tag)
-
getCacheFileFor
public java.io.File getCacheFileFor(java.net.URI url) throws java.lang.Exception- Throws:
java.lang.Exception
-
getCacheInfoFileFor
public java.io.File getCacheInfoFileFor(java.net.URI url) throws java.lang.Exception- Throws:
java.lang.Exception
-
clear
public boolean clear(java.net.URI uri) throws java.lang.Exception- Throws:
java.lang.Exception
-
isCached
public boolean isCached(java.net.URI url) throws java.lang.Exception- Throws:
java.lang.Exception
-
-