Uses of Class
org.apache.http.impl.client.cache.Variant
-
Packages that use Variant Package Description org.apache.http.impl.client.cache This package contains a cache module that can be used for HTTP/1.1 client-side caching. -
-
Uses of Variant in org.apache.http.impl.client.cache
Methods in org.apache.http.impl.client.cache that return types with arguments of type Variant Modifier and Type Method Description private java.util.Map<java.lang.String,Variant>
CachingExec. getExistingCacheVariants(org.apache.http.HttpHost target, HttpRequestWrapper request)
private java.util.Map<java.lang.String,Variant>
CachingHttpClient. getExistingCacheVariants(org.apache.http.HttpHost target, HttpRequestWrapper request)
Deprecated.java.util.Map<java.lang.String,Variant>
BasicHttpCache. getVariantCacheEntriesWithEtags(org.apache.http.HttpHost host, org.apache.http.HttpRequest request)
java.util.Map<java.lang.String,Variant>
HttpCache. getVariantCacheEntriesWithEtags(org.apache.http.HttpHost host, org.apache.http.HttpRequest request)
Retrieve all variants from the cache, if there are no variants then an emptyMap
is returnedMethods in org.apache.http.impl.client.cache with parameters of type Variant Modifier and Type Method Description private HttpCacheEntry
CachingExec. getUpdatedVariantEntry(org.apache.http.HttpHost target, HttpRequestWrapper conditionalRequest, java.util.Date requestDate, java.util.Date responseDate, CloseableHttpResponse backendResponse, Variant matchingVariant, HttpCacheEntry matchedEntry)
private HttpCacheEntry
CachingHttpClient. getUpdatedVariantEntry(org.apache.http.HttpHost target, HttpRequestWrapper conditionalRequest, java.util.Date requestDate, java.util.Date responseDate, org.apache.http.HttpResponse backendResponse, Variant matchingVariant, HttpCacheEntry matchedEntry)
Deprecated.void
BasicHttpCache. reuseVariantEntryFor(org.apache.http.HttpHost target, org.apache.http.HttpRequest req, Variant variant)
void
HttpCache. reuseVariantEntryFor(org.apache.http.HttpHost target, org.apache.http.HttpRequest req, Variant variant)
Specifies cache should reuse the given cached variant to satisfy requests whose varying headers match those of the given client request.private void
CachingExec. tryToUpdateVariantMap(org.apache.http.HttpHost target, HttpRequestWrapper request, Variant matchingVariant)
private void
CachingHttpClient. tryToUpdateVariantMap(org.apache.http.HttpHost target, HttpRequestWrapper request, Variant matchingVariant)
Deprecated.Method parameters in org.apache.http.impl.client.cache with type arguments of type Variant Modifier and Type Method Description private void
BasicHttpCache. addVariantWithEtag(java.lang.String variantKey, java.lang.String variantCacheKey, java.util.Map<java.lang.String,Variant> variants)
HttpRequestWrapper
ConditionalRequestBuilder. buildConditionalRequestFromVariants(HttpRequestWrapper request, java.util.Map<java.lang.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.(package private) CloseableHttpResponse
CachingExec. negotiateResponseFromVariants(HttpRoute route, HttpRequestWrapper request, HttpClientContext context, HttpExecutionAware execAware, java.util.Map<java.lang.String,Variant> variants)
(package private) org.apache.http.HttpResponse
CachingHttpClient. negotiateResponseFromVariants(org.apache.http.HttpHost target, HttpRequestWrapper request, org.apache.http.protocol.HttpContext context, java.util.Map<java.lang.String,Variant> variants)
Deprecated.
-