Package org.apache.hc.client5.http.impl.cache
package org.apache.hc.client5.http.impl.cache
Caching API implementation for both the classic and
the asynchronous HTTP transports.
-
ClassDescriptionAbstract cache backend for serialized binary objects capable of CAS (compare-and-swap) updates.Abstract cache backend for serialized binary objects capable of CAS (compare-and-swap) updates.Abstract cache backend for serialized objects capable of CAS (compare-and-swap) updates.Abstract cache backend for serialized objects capable of CAS (compare-and-swap) updates.Request executor in the request execution chain that is responsible for transparent client-side caching.Basic
HttpCacheStorage
implementation backed by an instance ofLinkedHashMap
.Should produce reasonably unique tokens.HttpCacheEntrySerializer
implementation that uses the default (native) serialization.Determines if an HttpRequest is allowed to be served from the cache.Java Beans-style configuration for cachingHttpClient
.Rebuilds anHttpResponse
from aHttpCacheEntry
Determines whether a givenHttpCacheEntry
is suitable to be used as a response for a givenHttpRequest
.Abstract cache re-validation class.Creates newHttpCacheEntry
s and updates existing ones with new or updated information based on the response from the origin server.Request executor in the request execution chain that is responsible for transparent client-side caching.Builder for HTTP/2CloseableHttpAsyncClient
instances capable of client-side caching.Builder forCloseableHttpAsyncClient
instances capable of client-side caching.Factory methods forCloseableHttpAsyncClient
instances capable of client-side caching.Builder forCloseableHttpClient
instances capable of client-side caching.Factory methods forCloseableHttpClient
instances capable of client-side caching.ConditionalRequestBuilder<T extends org.apache.hc.core5.http.HttpRequest>HTTP cache date support utilities.Given a particular HTTP request / response pair, flush any cache entries that this exchange would invalidate.Class used for asynchronous revalidations to be used when thestale-while-revalidate
directive is presentGiven a particular HTTP request / response pair, flush any cache entries that this exchange would invalidate.Class used for asynchronous revalidations to be used when thestale-while-revalidate
directive is presentCache 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.Cache serializer and deserializer that uses an HTTP-like format.Cache validity policy that always returns an age ofTimeValue.ZERO_MILLISECONDS
.Writer for SimpleHttpResponse.HTTP cache support utilities.HttpCacheStorage
implementation capable of deallocating resources associated with the cache entries.HttpCacheEntrySerializer
that usesHttpCacheStorageEntry
as its cache content representation.Records a set of information describing a cached variant.This class provides for parsing and understanding Warning headers.