Package org.apache.hc.client5.http.cache
Caching APIs for both the classic and the asynchronous
HTTP transports.
-
Interface Summary Interface Description HttpAsyncCacheInvalidator Given a particular HTTP request / response pair, flush any cache entries that this exchange would invalidate.HttpAsyncCacheStorage HttpAsyncCacheStorage represents an abstract HTTP cache storage backend that can then be plugged into the asynchronous (non-blocking ) request execution pipeline.HttpCacheCASOperation Atomic Compare-And-Swap (CAS) cache operation.HttpCacheEntrySerializer<T> Serializer / deserializer forHttpCacheStorageEntry
entries.HttpCacheInvalidator Given a particular HTTP request / response pair, flush any cache entries that this exchange would invalidate.HttpCacheStorage HttpCacheStorage represents an abstract HTTP cache storage backend that can then be plugged into the classic (blocking) request execution pipeline.ResourceFactory GeneratesResource
instances for handling cached HTTP response bodies. -
Class Summary Class Description HeaderConstants Records static constants for various HTTP header names.HttpAsyncCacheStorageAdaptor HttpAsyncCacheStorage
implementation that emulates asynchronous behavior using an instance of classicHttpCacheStorage
.HttpCacheContext Adaptor class that provides convenience type safe setters and getters for cachingHttpContext
attributes.HttpCacheEntry Structure used to store anHttpResponse
in a cache.HttpCacheStorageEntry This class contains aHttpCacheEntry
along with its key.Resource Represents a disposable system resource used for handling cached response bodies. -
Enum Summary Enum Description CacheResponseStatus This enumeration represents the various ways a response can be generated by the cachingHttpClient
; if a request is executed with anHttpCacheContext
then a parameter with one of these values will be registered in the context under the keyHttpCacheContext.CACHE_RESPONSE_STATUS
. -
Exception Summary Exception Description HttpCacheUpdateException Signals thatHttpCacheStorage
encountered an error performing an update operation.ResourceIOException Signals a generic resource I/O error.