Uses of Class
org.apache.hc.client5.http.cache.HttpCacheEntry
-
Packages that use HttpCacheEntry Package Description org.apache.hc.client5.http.cache Caching APIs for both the classic and the asynchronous HTTP transports.org.apache.hc.client5.http.impl.cache 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 HttpCacheEntry Modifier and Type Field Description private HttpCacheEntryHttpCacheContext. cacheEntryprivate HttpCacheEntryHttpCacheStorageEntry. contentMethods in org.apache.hc.client5.http.cache that return HttpCacheEntry Modifier and Type Method Description HttpCacheEntryHttpCacheEntryFactory. copy(HttpCacheEntry entry)Creates a copy of the givenHttpCacheEntry.HttpCacheEntryHttpCacheEntryFactory. create(java.time.Instant requestInstant, java.time.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.HttpCacheEntryHttpCacheEntryFactory. createRoot(HttpCacheEntry latestVariant, java.util.Collection<java.lang.String> variants)Creates a new rootHttpCacheEntry(parent of multiple variants).HttpCacheEntryHttpCacheEntryFactory. createUpdated(java.time.Instant requestInstant, java.time.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.HttpCacheEntryHttpCacheCASOperation. execute(HttpCacheEntry existing)Returns the new cache entry that should replace an existing one.HttpCacheEntryHttpCacheContext.Delegate. getCacheEntry()HttpCacheEntryHttpCacheContext. getCacheEntry()Represents the cache entry the resource of which has been used to generate the response.HttpCacheEntryHttpCacheStorageEntry. getContent()HttpCacheEntryHttpCacheStorage. getEntry(java.lang.String key)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 HttpCacheEntry Modifier and Type Method Description java.util.Map<java.lang.String,HttpCacheEntry>HttpCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)Retrieves multiple cache entries stored under the given keys.Methods in org.apache.hc.client5.http.cache with parameters of type HttpCacheEntry Modifier and Type Method Description HttpCacheEntryHttpCacheEntryFactory. copy(HttpCacheEntry entry)Creates a copy of the givenHttpCacheEntry.HttpCacheEntryHttpCacheEntryFactory. createRoot(HttpCacheEntry latestVariant, java.util.Collection<java.lang.String> variants)Creates a new rootHttpCacheEntry(parent of multiple variants).HttpCacheEntryHttpCacheEntryFactory. createUpdated(java.time.Instant requestInstant, java.time.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.HttpCacheEntryHttpCacheCASOperation. 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(java.lang.String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)Store a given cache entry under the given key.org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorageAdaptor. putEntry(java.lang.String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)voidHttpCacheStorage. putEntry(java.lang.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 HttpCacheEntry Modifier and Type Method Description org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorage. getEntries(java.util.Collection<java.lang.String> keys, org.apache.hc.core5.concurrent.FutureCallback<java.util.Map<java.lang.String,HttpCacheEntry>> callback)Retrieves multiple cache entries stored under the given keys.org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorageAdaptor. getEntries(java.util.Collection<java.lang.String> keys, org.apache.hc.core5.concurrent.FutureCallback<java.util.Map<java.lang.String,HttpCacheEntry>> callback)org.apache.hc.core5.concurrent.CancellableHttpAsyncCacheStorage. getEntry(java.lang.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(java.lang.String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)Constructors in org.apache.hc.client5.http.cache with parameters of type HttpCacheEntry Constructor Description HttpCacheStorageEntry(java.lang.String key, HttpCacheEntry content) -
Uses of HttpCacheEntry in org.apache.hc.client5.http.impl.cache
Fields in org.apache.hc.client5.http.impl.cache declared as HttpCacheEntry Modifier and Type Field Description (package private) HttpCacheEntryCacheHit. entryFields in org.apache.hc.client5.http.impl.cache with type parameters of type HttpCacheEntry Modifier and Type Field Description private java.util.Map<java.lang.String,HttpCacheEntry>InternalCacheStorage. mapprivate java.lang.ref.ReferenceQueue<HttpCacheEntry>ManagedHttpCacheStorage. morqueMethods in org.apache.hc.client5.http.impl.cache that return HttpCacheEntry Modifier and Type Method Description HttpCacheEntryInternalCacheStorage. get(java.lang.String key)HttpCacheEntryAbstractSerializingCacheStorage. getEntry(java.lang.String key)HttpCacheEntryBasicHttpCacheStorage. getEntry(java.lang.String url)Gets an entry from the cache, if it existsHttpCacheEntryManagedHttpCacheStorage. getEntry(java.lang.String url)(package private) HttpCacheEntryBasicHttpCache. getInternal(java.lang.String cacheKey)HttpCacheEntryInternalCacheStorage. remove(java.lang.String key)Methods in org.apache.hc.client5.http.impl.cache that return types with arguments of type HttpCacheEntry Modifier and Type Method Description java.util.Map<java.lang.String,HttpCacheEntry>AbstractSerializingCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)java.util.Map<java.lang.String,HttpCacheEntry>BasicHttpCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)java.util.Map<java.lang.String,HttpCacheEntry>ManagedHttpCacheStorage. getEntries(java.util.Collection<java.lang.String> keys)Methods in org.apache.hc.client5.http.impl.cache with parameters of type HttpCacheEntry Modifier and Type Method Description booleanCachedResponseSuitabilityChecker. allConditionalsMatch(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)Check that conditionals that are part of this request matchCacheSuitabilityCachedResponseSuitabilityChecker. assessSuitability(RequestCacheControl requestCacheControl, ResponseCacheControl responseCacheControl, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)Determine if I can utilize the givenHttpCacheEntryto respond to the givenHttpRequest.TConditionalRequestBuilder. 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, java.lang.String rootKey)private voidBasicHttpCache. evictAll(HttpCacheEntry root, java.lang.String rootKey)(package private) SimpleHttpResponseCachingExecBase. generateCachedResponse(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)java.lang.StringCacheKeyGenerator. generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry)(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.java.lang.StringCacheKeyGenerator. 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, java.time.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, java.time.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, java.time.Instant now)private voidManagedHttpCacheStorage. keepResourceReference(HttpCacheEntry entry)(package private) booleanCachedResponseSuitabilityChecker. lastModifiedValidatorMatches(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, java.time.Instant now)Check entry against If-Modified-Since, if If-Modified-Since is in the future it is invalidResponseCacheControlCacheControlHeaderParser. parse(HttpCacheEntry cacheEntry)voidInternalCacheStorage. put(java.lang.String key, HttpCacheEntry entry)org.apache.hc.core5.concurrent.CancellableAbstractSerializingAsyncCacheStorage. putEntry(java.lang.String key, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)voidAbstractSerializingCacheStorage. putEntry(java.lang.String key, HttpCacheEntry entry)voidBasicHttpCacheStorage. putEntry(java.lang.String url, HttpCacheEntry entry)Places a HttpCacheEntry in the cachevoidManagedHttpCacheStorage. putEntry(java.lang.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, java.time.Instant now)(package private) org.apache.hc.core5.concurrent.CancellableBasicHttpAsyncCache. store(java.lang.String rootKey, java.lang.String variantKey, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<CacheHit> callback)(package private) CacheHitBasicHttpCache. store(java.lang.String rootKey, java.lang.String variantKey, HttpCacheEntry entry)(package private) org.apache.hc.core5.concurrent.CancellableBasicHttpAsyncCache. storeInternal(java.lang.String cacheKey, HttpCacheEntry entry, org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback)(package private) voidBasicHttpCache. storeInternal(java.lang.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 HttpCacheEntry Modifier and Type Method Description org.apache.hc.core5.concurrent.CancellableAbstractSerializingAsyncCacheStorage. getEntries(java.util.Collection<java.lang.String> keys, org.apache.hc.core5.concurrent.FutureCallback<java.util.Map<java.lang.String,HttpCacheEntry>> callback)org.apache.hc.core5.concurrent.CancellableAbstractSerializingAsyncCacheStorage. getEntry(java.lang.String key, org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback)Constructors in org.apache.hc.client5.http.impl.cache with parameters of type HttpCacheEntry Constructor Description CacheHit(java.lang.String rootKey, java.lang.String variantKey, HttpCacheEntry entry)CacheHit(java.lang.String rootKey, HttpCacheEntry entry)ResourceReference(HttpCacheEntry entry, java.lang.ref.ReferenceQueue<HttpCacheEntry> q)Constructor parameters in org.apache.hc.client5.http.impl.cache with type arguments of type HttpCacheEntry Constructor Description ResourceReference(HttpCacheEntry entry, java.lang.ref.ReferenceQueue<HttpCacheEntry> q)
-