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 emptyMapis returnedMethods in org.apache.hc.client5.http.impl.cache with parameters of type VariantModifier and TypeMethodDescriptionorg.apache.hc.core5.concurrent.CancellableBasicHttpAsyncCache.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) voidBasicHttpCache.reuseVariantEntryFor(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, Variant variant) org.apache.hc.core5.concurrent.CancellableHttpAsyncCache.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.voidHttpCache.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.CancellableBasicHttpAsyncCache.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.CancellableHttpAsyncCache.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 specificHttpCacheEntryrepresenting 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 specificHttpCacheEntryrepresenting 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 aHttpCacheEntrydoes not exist for a specificHttpRequestwe attempt to see if an existingHttpCacheEntryis appropriate by building a conditionalHttpRequestusing the variants' ETag values.org.apache.hc.core5.concurrent.CancellableBasicHttpAsyncCache.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.CancellableHttpAsyncCache.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) voidAsyncCachingExec.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.ClassicHttpResponseCachingExec.negotiateResponseFromVariants(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain, Map<String, Variant> variants)