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.
-
Interface Summary Interface Description FailureCache Increase and reset the number of errors associated with a specific identifier.HttpCache SchedulingStrategy Specifies when revalidation requests are scheduled. -
Class Summary Class Description AsynchronousValidationRequest Class used to represent an asynchronous revalidation event, such as with "stale-while-revalidate"AsynchronousValidator Class used for asynchronous revalidations to be used when the "stale- while-revalidate" directive is presentBasicHttpCache BasicHttpCacheStorage BasicHttpCacheStorageimplementation backed by an instance ofLinkedHashMap.BasicIdGenerator Should produce reasonably unique tokens.CacheableRequestPolicy Determines if an HttpRequest is allowed to be served from the cache.CacheConfig Java Beans-style configuration for aCachingHttpClient.CacheConfig.Builder CachedHttpResponseGenerator Rebuilds anHttpResponsefrom anet.sf.ehcache.CacheEntryCachedResponseSuitabilityChecker Determines whether a givenHttpCacheEntryis suitable to be used as a response for a givenHttpRequest.CacheEntity CacheEntryUpdater Update aHttpCacheEntrywith new or updated information based on the latest 304 status response from the Server.CacheInvalidator Given a particular HttpRequest, flush any cache entries that this request would invalidate.CacheKeyGenerator CacheMap CacheValidityPolicy CachingExec Request executor in the request execution chain that is responsible for transparent client-side caching.CachingHttpClient Deprecated. (4.3) useCachingHttpClientBuilderorCachingHttpClients.CachingHttpClient.AsynchronousValidationRequest CachingHttpClient.AsynchronousValidator CachingHttpClientBuilder Builder forCloseableHttpClientinstances capable of client-side caching.CachingHttpClients Factory methods forCloseableHttpClientinstances capable of client-side caching.CombinedEntity ConditionalRequestBuilder DefaultFailureCache Implements a bounded failure cache.DefaultHttpCacheEntrySerializer HttpCacheEntrySerializerimplementation that uses the default (native) serialization.DefaultHttpCacheEntrySerializer.RestrictedObjectInputStream ExponentialBackOffSchedulingStrategy An implementation that backs off exponentially based on the number of consecutive failed attempts stored in theAsynchronousValidationRequest.FailureCacheValue The error count with a creation timestamp and its associated key.FileResource Cache resource backed by a file.FileResourceFactory GeneratesResourceinstances whose body is stored in a temporary file.HeapResource Cache resource backed by a byte array on the heap.HeapResourceFactory GeneratesResourceinstances stored entirely in heap.ImmediateSchedulingStrategy Immediately schedules any incoming validation request.IOUtils ManagedHttpCacheStorage HttpCacheStorageimplementation capable of deallocating resources associated with the cache entries.OptionsHttp11Response Proxies Proxies for HTTP message objects.RequestProtocolCompliance ResourceReference ResponseCachingPolicy Determines if an HttpResponse can be cached.ResponseProtocolCompliance ResponseProxyHandler A proxy class that can enhance an arbitraryHttpResponsewithCloseable.close()method.SizeLimitedResponseReader 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