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
Methods 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.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.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.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
Methods in org.apache.hc.client5.http.impl.cache that return HttpCacheEntryModifier and TypeMethodDescriptionfinal HttpCacheEntryGets an entry from the cache, if it existsMethods 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 TypeMethodDescriptionCacheKeyGenerator.generateKey(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) Deprecated.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).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) 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)
CacheKeyGenerator.generateKey(HttpHost, HttpRequest)orCacheKeyGenerator.generateVariantKey(HttpRequest, Collection)