Package | Description |
---|---|
org.apache.http.impl.client.cache |
This package contains a cache module that can be used for HTTP/1.1
client-side caching.
|
org.apache.http.impl.client.cache.ehcache |
This package contains a storage backend based on
Ehcache
that can be plugged into
a
CachingHttpClient and
used for storing cache entries. |
org.apache.http.impl.client.cache.memcached |
This package contains a storage backend based on
memcached
that can be plugged into
a
CachingHttpClient and
used for storing cache entries. |
Modifier and Type | Class and Description |
---|---|
class |
BasicHttpCacheStorage
Basic
HttpCacheStorage implementation backed by an instance of
LinkedHashMap . |
class |
ManagedHttpCacheStorage
HttpCacheStorage implementation capable of deallocating resources associated with
the cache entries. |
Modifier and Type | Field and Description |
---|---|
private HttpCacheStorage |
BasicHttpCache.storage |
private HttpCacheStorage |
CachingHttpClientBuilder.storage |
private HttpCacheStorage |
CacheInvalidator.storage |
Modifier and Type | Method and Description |
---|---|
CachingHttpClientBuilder |
CachingHttpClientBuilder.setHttpCacheStorage(HttpCacheStorage storage) |
Constructor and Description |
---|
BasicHttpCache(ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config) |
BasicHttpCache(ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config,
CacheKeyGenerator uriExtractor) |
BasicHttpCache(ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config,
CacheKeyGenerator uriExtractor,
HttpCacheInvalidator cacheInvalidator) |
CacheInvalidator(CacheKeyGenerator uriExtractor,
HttpCacheStorage storage)
|
CachingExec(ClientExecChain backend,
ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config) |
CachingHttpClient(HttpClient client,
HttpCacheStorage storage,
CacheConfig config)
Deprecated.
Constructs a
CachingHttpClient with the given caching options
that stores cache entries in the provided storage backend and uses
the given HttpClient for backend requests. |
CachingHttpClient(HttpClient client,
ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config)
Deprecated.
Constructs a
CachingHttpClient with the given caching options
that stores cache entries in the provided storage backend and uses
the given HttpClient for backend requests. |
Modifier and Type | Class and Description |
---|---|
class |
EhcacheHttpCacheStorage
This class is a storage backend for cache entries that uses the
popular Ehcache cache implementation.
|
Modifier and Type | Class and Description |
---|---|
class |
MemcachedHttpCacheStorage
This class is a storage backend that uses an external memcached
for storing cached origin responses.
|