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.
|
Modifier and Type | Class and Description |
---|---|
class |
FileResourceFactory
Generates
Resource instances whose body is stored in a temporary file. |
class |
HeapResourceFactory
Generates
Resource instances stored entirely in heap. |
Modifier and Type | Field and Description |
---|---|
private ResourceFactory |
SizeLimitedResponseReader.resourceFactory |
private ResourceFactory |
CachingHttpClientBuilder.resourceFactory |
private ResourceFactory |
BasicHttpCache.resourceFactory |
private ResourceFactory |
CacheEntryUpdater.resourceFactory |
Modifier and Type | Method and Description |
---|---|
CachingHttpClientBuilder |
CachingHttpClientBuilder.setResourceFactory(ResourceFactory resourceFactory) |
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) |
CacheEntryUpdater(ResourceFactory resourceFactory) |
CachingExec(ClientExecChain backend,
ResourceFactory resourceFactory,
HttpCacheStorage storage,
CacheConfig config) |
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. |
SizeLimitedResponseReader(ResourceFactory resourceFactory,
long maxResponseSizeBytes,
org.apache.http.HttpRequest request,
CloseableHttpResponse response)
Create an
HttpResponse that is limited in size, this allows for checking
the size of objects that will be stored in the cache. |