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()
Deprecated.
Use
JarCacheStorage(ClassLoader, CacheConfig)
instead. |
JarCacheStorage(ClassLoader classLoader)
Deprecated.
Use
JarCacheStorage(ClassLoader, CacheConfig)
instead. |
JarCacheStorage(ClassLoader classLoader,
org.apache.http.impl.client.cache.CacheConfig cacheConfig) |
JarCacheStorage(ClassLoader classLoader,
org.apache.http.impl.client.cache.CacheConfig cacheConfig,
org.apache.http.client.cache.HttpCacheStorage delegate) |
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)
@Deprecated public JarCacheStorage()
JarCacheStorage(ClassLoader, CacheConfig)
instead.@Deprecated public JarCacheStorage(ClassLoader classLoader)
JarCacheStorage(ClassLoader, CacheConfig)
instead.classLoader
- The ClassLoader to use to locate JAR files and resources, or
null to use the Thread context class loader in each case.public JarCacheStorage(ClassLoader classLoader, org.apache.http.impl.client.cache.CacheConfig cacheConfig)
public JarCacheStorage(ClassLoader classLoader, org.apache.http.impl.client.cache.CacheConfig cacheConfig, org.apache.http.client.cache.HttpCacheStorage delegate)
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 © 2019. All rights reserved.