Package org.apache.hc.client5.http.impl.cache
Caching API implementation for both the classic and
the asynchronous HTTP transports.
-
Interface Summary Interface Description CacheRevalidatorBase.ScheduledExecutor DefaultAsyncCacheRevalidator.RevalidationCall DefaultCacheRevalidator.RevalidationCall HttpAsyncCache HttpCache -
Class Summary Class Description AbstractBinaryAsyncCacheStorage<CAS> Abstract cache backend for serialized binary objects capable of CAS (compare-and-swap) updates.AbstractBinaryCacheStorage<CAS> Abstract cache backend for serialized binary objects capable of CAS (compare-and-swap) updates.AbstractSerializingAsyncCacheStorage<T,CAS> Abstract cache backend for serialized objects capable of CAS (compare-and-swap) updates.AbstractSerializingCacheStorage<T,CAS> Abstract cache backend for serialized objects capable of CAS (compare-and-swap) updates.AsyncCachingExec Request executor in the request execution chain that is responsible for transparent client-side caching.AsyncCachingExec.AsyncExecCallbackWrapper BasicHttpAsyncCache BasicHttpCache BasicHttpCacheStorage BasicHttpCacheStorage
implementation backed by an instance ofLinkedHashMap
.BasicIdGenerator Should produce reasonably unique tokens.ByteArrayCacheEntrySerializer HttpCacheEntrySerializer
implementation that uses the default (native) serialization.ByteArrayCacheEntrySerializer.RestrictedObjectInputStream CacheableRequestPolicy Determines if an HttpRequest is allowed to be served from the cache.CacheConfig Java Beans-style configuration for cachingHttpClient
.CacheConfig.Builder CachedHttpResponseGenerator Rebuilds anHttpResponse
from aHttpCacheEntry
CachedResponseSuitabilityChecker Determines whether a givenHttpCacheEntry
is suitable to be used as a response for a givenHttpRequest
.CacheInvalidatorBase CacheKeyGenerator CacheMap CacheRevalidatorBase Abstract cache re-validation class.CacheUpdateHandler Creates newHttpCacheEntry
s and updates existing ones with new or updated information based on the response from the origin server.CacheValidityPolicy CachingExec Request executor in the request execution chain that is responsible for transparent client-side caching.CachingExecBase CachingH2AsyncClientBuilder Builder for HTTP/2CloseableHttpAsyncClient
instances capable of client-side caching.CachingHttpAsyncClientBuilder Builder forCloseableHttpAsyncClient
instances capable of client-side caching.CachingHttpAsyncClients Factory methods forCloseableHttpAsyncClient
instances capable of client-side caching.CachingHttpClientBuilder Builder forCloseableHttpClient
instances capable of client-side caching.CachingHttpClients Factory methods forCloseableHttpClient
instances capable of client-side caching.CombinedEntity ConditionalRequestBuilder<T extends org.apache.hc.core5.http.HttpRequest> DateSupport HTTP cache date support utilities.DefaultAsyncCacheInvalidator Given a particular HTTP request / response pair, flush any cache entries that this exchange would invalidate.DefaultAsyncCacheRevalidator Class used for asynchronous revalidations to be used when thestale-while-revalidate
directive is presentDefaultAsyncCacheRevalidator.InternalScheduledExecutor DefaultCacheInvalidator Given a particular HTTP request / response pair, flush any cache entries that this exchange would invalidate.DefaultCacheRevalidator Class used for asynchronous revalidations to be used when thestale-while-revalidate
directive is presentFileResource Cache resource backed by a file.FileResourceFactory GeneratesResource
instances whose body is stored in a temporary file.HeapResource Cache resource backed by a byte array on the heap.HeapResourceFactory GeneratesResource
instances stored entirely in heap.HttpByteArrayCacheEntrySerializer Cache serializer and deserializer that uses an HTTP-like format.HttpByteArrayCacheEntrySerializer.NoAgeCacheValidityPolicy Cache validity policy that always returns an age ofTimeValue.ZERO_MILLISECONDS
.HttpByteArrayCacheEntrySerializer.SimpleHttpResponseWriter Writer for SimpleHttpResponse.HttpCacheSupport HTTP cache support utilities.ManagedHttpCacheStorage HttpCacheStorage
implementation capable of deallocating resources associated with the cache entries.NoopCacheEntrySerializer HttpCacheEntrySerializer
that usesHttpCacheStorageEntry
as its cache content representation.RequestProtocolCompliance ResourceReference ResponseCachingPolicy ResponseProtocolCompliance Variant Records a set of information describing a cached variant.WarningValue This class provides for parsing and understanding Warning headers. -
Enum Summary Enum Description RequestProtocolError