public class JarCacheStorage extends Object implements org.apache.http.client.cache.HttpCacheStorage
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<URI,SoftReference<com.fasterxml.jackson.databind.JsonNode>> |
jarCaches
Map from uri of jarcache.json (e.g.
|
Constructor and Description |
---|
JarCacheStorage() |
JarCacheStorage(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.client.cache.HttpCacheEntry |
cacheEntry(URI requestedUri,
URL baseURL,
com.fasterxml.jackson.databind.JsonNode cacheNode) |
org.apache.http.impl.client.cache.CacheConfig |
getCacheConfig() |
ClassLoader |
getClassLoader() |
org.apache.http.client.cache.HttpCacheEntry |
getEntry(String key) |
protected com.fasterxml.jackson.databind.JsonNode |
getJarCache(URL url) |
void |
putEntry(String key,
org.apache.http.client.cache.HttpCacheEntry entry) |
void |
removeEntry(String key) |
void |
setClassLoader(ClassLoader classLoader) |
void |
updateEntry(String key,
org.apache.http.client.cache.HttpCacheUpdateCallback callback) |
protected ConcurrentMap<URI,SoftReference<com.fasterxml.jackson.databind.JsonNode>> jarCaches
getJarCache(URL)
public JarCacheStorage()
public JarCacheStorage(ClassLoader classLoader)
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public void putEntry(String key, org.apache.http.client.cache.HttpCacheEntry entry) throws IOException
putEntry
in interface org.apache.http.client.cache.HttpCacheStorage
IOException
public org.apache.http.client.cache.HttpCacheEntry getEntry(String key) throws IOException
getEntry
in interface org.apache.http.client.cache.HttpCacheStorage
IOException
protected com.fasterxml.jackson.databind.JsonNode getJarCache(URL url) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
protected org.apache.http.client.cache.HttpCacheEntry cacheEntry(URI requestedUri, URL baseURL, com.fasterxml.jackson.databind.JsonNode cacheNode) throws MalformedURLException, IOException
MalformedURLException
IOException
public void removeEntry(String key) throws IOException
removeEntry
in interface org.apache.http.client.cache.HttpCacheStorage
IOException
public void updateEntry(String key, org.apache.http.client.cache.HttpCacheUpdateCallback callback) throws IOException, org.apache.http.client.cache.HttpCacheUpdateException
updateEntry
in interface org.apache.http.client.cache.HttpCacheStorage
IOException
org.apache.http.client.cache.HttpCacheUpdateException
public org.apache.http.impl.client.cache.CacheConfig getCacheConfig()
Copyright © 2015. All rights reserved.