public class JarCacheStorage extends Object implements org.apache.http.client.cache.HttpCacheStorage
HttpCacheStorage interface
using jarcache.json files on the classpath to identify static JSON-LD
resources on the classpath, to avoid retrieving them.| Constructor and Description |
|---|
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)
Sets the ClassLoader used internally to a new value, or null to use
Thread.currentThread() and Thread.getContextClassLoader()
for each access. |
void |
updateEntry(String key,
org.apache.http.client.cache.HttpCacheUpdateCallback callback) |
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)
Thread.currentThread() and Thread.getContextClassLoader()
for each access.classLoader - The classloader to use, or null to use the thread context
classloaderpublic void putEntry(String key, org.apache.http.client.cache.HttpCacheEntry entry) throws IOException
putEntry in interface org.apache.http.client.cache.HttpCacheStorageIOExceptionpublic org.apache.http.client.cache.HttpCacheEntry getEntry(String key) throws IOException
getEntry in interface org.apache.http.client.cache.HttpCacheStorageIOExceptionprotected com.fasterxml.jackson.databind.JsonNode getJarCache(URL url) throws IOException
IOExceptionprotected org.apache.http.client.cache.HttpCacheEntry cacheEntry(URI requestedUri, URL baseURL, com.fasterxml.jackson.databind.JsonNode cacheNode) throws MalformedURLException, IOException
MalformedURLExceptionIOExceptionpublic void removeEntry(String key) throws IOException
removeEntry in interface org.apache.http.client.cache.HttpCacheStorageIOExceptionpublic 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.HttpCacheStorageIOExceptionorg.apache.http.client.cache.HttpCacheUpdateExceptionpublic org.apache.http.impl.client.cache.CacheConfig getCacheConfig()
Copyright © 2018. All rights reserved.