Uses of Class
org.apache.hc.client5.http.impl.cache.Variant
Packages that use Variant
Package
Description
Caching API implementation for both the classic and
the asynchronous HTTP transports.
-
Uses of Variant in org.apache.hc.client5.http.impl.cache
Methods in org.apache.hc.client5.http.impl.cache that return types with arguments of type VariantModifier and TypeMethodDescriptionBasicHttpCache.getVariantCacheEntriesWithEtags
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request) HttpCache.getVariantCacheEntriesWithEtags
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request) Retrieve all variants from the cache, if there are no variants then an emptyMap
is returnedMethods in org.apache.hc.client5.http.impl.cache with parameters of type VariantModifier and TypeMethodDescriptionorg.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache.reuseVariantEntryFor
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, Variant variant, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) void
BasicHttpCache.reuseVariantEntryFor
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, Variant variant) org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache.reuseVariantEntryFor
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest req, Variant variant, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) Specifies cache should reuse the given cached variant to satisfy requests whose varying headers match those of the given client request.void
HttpCache.reuseVariantEntryFor
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, Variant variant) Specifies cache should reuse the given cached variant to satisfy requests whose varying headers match those of the given client request.org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache.updateVariantCacheEntry
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) BasicHttpCache.updateVariantCacheEntry
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, Instant requestSent, Instant responseReceived) org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache.updateVariantCacheEntry
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, Instant requestSent, Instant responseReceived, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) Update a specificHttpCacheEntry
representing a cached variant using a 304HttpResponse
.HttpCache.updateVariantCacheEntry
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, Variant variant, Instant requestSent, Instant responseReceived) Update a specificHttpCacheEntry
representing a cached variant using a 304HttpResponse
.Method parameters in org.apache.hc.client5.http.impl.cache with type arguments of type VariantModifier and TypeMethodDescriptionConditionalRequestBuilder.buildConditionalRequestFromVariants
(T request, Map<String, Variant> variants) When aHttpCacheEntry
does not exist for a specificHttpRequest
we attempt to see if an existingHttpCacheEntry
is appropriate by building a conditionalHttpRequest
using the variants' ETag values.org.apache.hc.core5.concurrent.Cancellable
BasicHttpAsyncCache.getVariantCacheEntriesWithEtags
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.concurrent.FutureCallback<Map<String, Variant>> callback) org.apache.hc.core5.concurrent.Cancellable
HttpAsyncCache.getVariantCacheEntriesWithEtags
(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.concurrent.FutureCallback<Map<String, Variant>> callback) Retrieve all variants from the cache, if there are no variants then an empty(package private) void
AsyncCachingExec.negotiateResponseFromVariants
(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback asyncExecCallback, Map<String, Variant> variants) (package private) org.apache.hc.core5.http.ClassicHttpResponse
CachingExec.negotiateResponseFromVariants
(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain, Map<String, Variant> variants)