Uses of Class
org.apache.hc.client5.http.cache.HttpCacheEntry
Packages that use HttpCacheEntry
Package
Description
Caching APIs for both the classic and the asynchronous
HTTP transports.
Caching API implementation for both the classic and
the asynchronous HTTP transports.
-
Uses of HttpCacheEntry in org.apache.hc.client5.http.cache
Fields in org.apache.hc.client5.http.cache declared as HttpCacheEntryModifier and TypeFieldDescriptionprivate HttpCacheEntryHttpCacheContext.cacheEntryprivate final HttpCacheEntryHttpCacheStorageEntry.contentMethods in org.apache.hc.client5.http.cache that return HttpCacheEntryModifier and TypeMethodDescriptionHttpCacheEntryFactory.copy(HttpCacheEntry entry) Creates a copy of the givenHttpCacheEntry.HttpCacheEntryFactory.create(Instant requestInstant, Instant responseInstant, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, Resource resource) Create a newHttpCacheEntrywith the givenResource.HttpCacheEntryFactory.createRoot(HttpCacheEntry latestVariant, Collection<String> variants) Creates a new rootHttpCacheEntry(parent of multiple variants).HttpCacheEntryFactory.createUpdated(Instant requestInstant, Instant responseInstant, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry) Creates updated entry with the new information from the response.HttpCacheCASOperation.execute(HttpCacheEntry existing) Returns the new cache entry that should replace an existing one.HttpCacheContext.Delegate.getCacheEntry()HttpCacheContext.getCacheEntry()Represents the cache entry the resource of which has been used to generate the response.HttpCacheStorageEntry.getContent()Retrieves the cache entry stored under the given key or null if no entry exists under that key.Methods in org.apache.hc.client5.http.cache that return types with arguments of type HttpCacheEntryModifier and TypeMethodDescriptionHttpCacheStorage.getEntries(Collection<String> keys) Retrieves multiple cache entries stored under the given keys.Methods in org.apache.hc.client5.http.cache with parameters of type HttpCacheEntryModifier and TypeMethodDescriptionHttpCacheEntryFactory.copy(HttpCacheEntry entry) Creates a copy of the givenHttpCacheEntry.HttpCacheEntryFactory.createRoot(HttpCacheEntry latestVariant, Collection<String> variants) Creates a new rootHttpCacheEntry(parent of multiple variants).HttpCacheEntryFactory.createUpdated(Instant requestInstant, Instant responseInstant, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry) Creates updated entry with the new information from the response.HttpCacheCASOperation.execute(HttpCacheEntry existing) Returns the new cache entry that should replace an existing one.static booleanHttpCacheEntry.isNewer(HttpCacheEntry entry, org.apache.hc.core5.http.MessageHeaders message) Tests if the givenHttpCacheEntryis newer than the givenMessageHeadersby comparing values of their DATE header.(package private) org.apache.hc.core5.http.message.HeaderGroupHttpCacheEntryFactory.mergeHeaders(HttpCacheEntry entry, org.apache.hc.core5.http.HttpResponse response) org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorage.putEntry(String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) Store a given cache entry under the given key.org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorageAdaptor.putEntry(String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) voidHttpCacheStorage.putEntry(String key, HttpCacheEntry entry) Store a given cache entry under the given key.voidHttpCacheContext.Delegate.setCacheEntry(HttpCacheEntry cacheEntry) voidHttpCacheContext.setCacheEntry(HttpCacheEntry cacheEntry) Method parameters in org.apache.hc.client5.http.cache with type arguments of type HttpCacheEntryModifier and TypeMethodDescriptionorg.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorage.getEntries(Collection<String> keys, org.apache.hc.core5.concurrent.FutureCallback<Map<String, HttpCacheEntry>> callback) Retrieves multiple cache entries stored under the given keys.org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorageAdaptor.getEntries(Collection<String> keys, org.apache.hc.core5.concurrent.FutureCallback<Map<String, HttpCacheEntry>> callback) org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorage.getEntry(String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) Retrieves the cache entry stored under the given key or null if no entry exists under that key.org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorageAdaptor.getEntry(String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) Constructors in org.apache.hc.client5.http.cache with parameters of type HttpCacheEntry -
Uses of HttpCacheEntry in org.apache.hc.client5.http.impl.cache
Subclasses with type arguments of type HttpCacheEntry in org.apache.hc.client5.http.impl.cacheFields in org.apache.hc.client5.http.impl.cache declared as HttpCacheEntryFields in org.apache.hc.client5.http.impl.cache with type parameters of type HttpCacheEntryModifier and TypeFieldDescriptionprivate final Map<String, HttpCacheEntry> InternalCacheStorage.mapprivate final ReferenceQueue<HttpCacheEntry> ManagedHttpCacheStorage.morqueMethods in org.apache.hc.client5.http.impl.cache that return HttpCacheEntryModifier and TypeMethodDescriptionfinal HttpCacheEntryGets an entry from the cache, if it exists(package private) HttpCacheEntryBasicHttpCache.getInternal(String cacheKey) Methods in org.apache.hc.client5.http.impl.cache that return types with arguments of type HttpCacheEntryModifier and TypeMethodDescriptionfinal Map<String, HttpCacheEntry> AbstractSerializingCacheStorage.getEntries(Collection<String> keys) BasicHttpCacheStorage.getEntries(Collection<String> keys) ManagedHttpCacheStorage.getEntries(Collection<String> keys) Methods in org.apache.hc.client5.http.impl.cache with parameters of type HttpCacheEntryModifier and TypeMethodDescriptionbooleanCachedResponseSuitabilityChecker.allConditionalsMatch(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, Instant now) Check that conditionals that are part of this request matchCachedResponseSuitabilityChecker.assessSuitability(RequestCacheControl requestCacheControl, ResponseCacheControl responseCacheControl, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, Instant now) Determine if I can utilize the givenHttpCacheEntryto respond to the givenHttpRequest.ConditionalRequestBuilder.buildConditionalRequest(ResponseCacheControl cacheControl, T request, HttpCacheEntry cacheEntry) When aHttpCacheEntryis stale but 'might' be used as a response to anHttpRequestwe will attempt to revalidate the entry with the origin.(package private) booleanCachedResponseSuitabilityChecker.etagValidatorMatches(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) Check entry against If-None-Matchprivate voidBasicHttpAsyncCache.evictAll(HttpCacheEntry root, String rootKey) private voidBasicHttpCache.evictAll(HttpCacheEntry root, String rootKey) (package private) SimpleHttpResponseCachingExecBase.generateCachedResponse(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, Instant now) CacheKeyGenerator.generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) Deprecated.(package private) SimpleHttpResponseCachedHttpResponseGenerator.generateNotModifiedResponse(HttpCacheEntry entry) Generate a 304 - Not Modified response from theHttpCacheEntry.(package private) SimpleHttpResponseCachedHttpResponseGenerator.generateResponse(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) If it is legal to use cached content in response response to theHttpRequestthen generate anHttpResponsebased onHttpCacheEntry.CacheKeyGenerator.generateVariantKey(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) Computes a "variant key" from the headers of the given request if the given cache entry can have variants (Varyheader is present).(package private) longCacheValidityPolicy.getAgeValue(HttpCacheEntry entry) Extracts and processes the Age value from an HttpCacheEntry by tokenizing the Age header value.(package private) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getApparentAge(HttpCacheEntry entry) (package private) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getCorrectedAgeValue(HttpCacheEntry entry) (package private) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getCorrectedInitialAge(HttpCacheEntry entry) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getCurrentAge(HttpCacheEntry entry, Instant now) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getFreshnessLifetime(ResponseCacheControl responseCacheControl, HttpCacheEntry entry) Calculate the freshness lifetime of a response based on the provided cache control and cache entry.(package private) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getHeuristicFreshnessLifetime(HttpCacheEntry entry) (package private) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getResidentTime(HttpCacheEntry entry, Instant now) (package private) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getResponseDelay(HttpCacheEntry entry) (package private) booleanCachedResponseSuitabilityChecker.isResponseNoCache(ResponseCacheControl responseCacheControl, HttpCacheEntry entry) Determines if the givenHttpCacheEntryrequires revalidation based on the presence of theno-cachedirective in the Cache-Control header.booleanCachedResponseSuitabilityChecker.isSuitableIfError(RequestCacheControl requestCacheControl, ResponseCacheControl responseCacheControl, HttpCacheEntry entry, Instant now) private voidManagedHttpCacheStorage.keepResourceReference(HttpCacheEntry entry) (package private) booleanCachedResponseSuitabilityChecker.lastModifiedValidatorMatches(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, Instant now) Check entry against If-Modified-Since, if If-Modified-Since is in the future it is invalidfinal ResponseCacheControlCacheControlHeaderParser.parse(HttpCacheEntry cacheEntry) voidInternalCacheStorage.put(String key, HttpCacheEntry entry) final org.apache.hc.core5.concurrent.CancellableAbstractSerializingAsyncCacheStorage.putEntry(String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) final voidAbstractSerializingCacheStorage.putEntry(String key, HttpCacheEntry entry) voidBasicHttpCacheStorage.putEntry(String url, HttpCacheEntry entry) Places a HttpCacheEntry in the cachevoidManagedHttpCacheStorage.putEntry(String url, HttpCacheEntry entry) (package private) booleanCachedResponseSuitabilityChecker.requestHeadersMatch(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) (package private) booleanCachedResponseSuitabilityChecker.requestMethodMatch(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) (package private) booleanCachedResponseSuitabilityChecker.requestUriMatch(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) private booleanCachedHttpResponseGenerator.responseShouldContainEntity(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry cacheEntry) (package private) booleanCachingExecBase.shouldSendNotModifiedResponse(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry responseEntry, Instant now) (package private) org.apache.hc.core5.concurrent.CancellableBasicHttpAsyncCache.store(String rootKey, String variantKey, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback) (package private) CacheHitBasicHttpCache.store(String rootKey, String variantKey, HttpCacheEntry entry) (package private) org.apache.hc.core5.concurrent.CancellableBasicHttpAsyncCache.storeInternal(String cacheKey, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<Boolean> callback) (package private) voidBasicHttpCache.storeInternal(String cacheKey, HttpCacheEntry entry) (package private) voidAsyncCachingExec.BackendResponseHandler.triggerCachedResponse(HttpCacheEntry entry) Method parameters in org.apache.hc.client5.http.impl.cache with type arguments of type HttpCacheEntryModifier and TypeMethodDescriptionfinal org.apache.hc.core5.concurrent.CancellableAbstractSerializingAsyncCacheStorage.getEntries(Collection<String> keys, org.apache.hc.core5.concurrent.FutureCallback<Map<String, HttpCacheEntry>> callback) final org.apache.hc.core5.concurrent.CancellableAbstractSerializingAsyncCacheStorage.getEntry(String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) Constructors in org.apache.hc.client5.http.impl.cache with parameters of type HttpCacheEntryModifierConstructorDescriptionCacheHit(String rootKey, String variantKey, HttpCacheEntry entry) CacheHit(String rootKey, HttpCacheEntry entry) Constructor parameters in org.apache.hc.client5.http.impl.cache with type arguments of type HttpCacheEntryModifierConstructorDescription
CacheKeyGenerator.generateKey(HttpHost, HttpRequest)orCacheKeyGenerator.generateVariantKey(HttpRequest, Collection)