Package org.apache.http.impl.client.cache
package org.apache.http.impl.client.cache
This package contains a cache module that can be used for HTTP/1.1
client-side caching. The primary classes in this package are the
CachingHttpClient
,
which is a drop-in replacement for
a DefaultHttpClient
that adds
caching, and the CacheConfig
class that can be used for configuring it.
-
ClassDescriptionClass used to represent an asynchronous revalidation event, such as with "stale-while-revalidate"Basic
HttpCacheStorage
implementation backed by an instance ofLinkedHashMap
.Java Beans-style configuration for aCachingHttpClient
.Request executor in the request execution chain that is responsible for transparent client-side caching.Deprecated.Builder forCloseableHttpClient
instances capable of client-side caching.Factory methods forCloseableHttpClient
instances capable of client-side caching.Implements a bounded failure cache.HttpCacheEntrySerializer
implementation that uses the default (native) serialization.An implementation that backs off exponentially based on the number of consecutive failed attempts stored in theAsynchronousValidationRequest
.Increase and reset the number of errors associated with a specific identifier.The error count with a creation timestamp and its associated key.Cache resource backed by a file.GeneratesResource
instances whose body is stored in a temporary file.Cache resource backed by a byte array on the heap.GeneratesResource
instances stored entirely in heap.Immediately schedules any incoming validation request.HttpCacheStorage
implementation capable of deallocating resources associated with the cache entries.Specifies when revalidation requests are scheduled.
CachingHttpClientBuilder
orCachingHttpClients
.