Uses of Class
org.apache.hc.client5.http.cache.ResourceIOException
Packages that use ResourceIOException
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 ResourceIOException in org.apache.hc.client5.http.cache
Methods in org.apache.hc.client5.http.cache that throw ResourceIOExceptionModifier and TypeMethodDescriptionClones an existingResource
.HttpCacheEntrySerializer.deserialize
(T serializedObject) Deserializes a cache entry from its serialized representation.HttpCacheCASOperation.execute
(HttpCacheEntry existing) Returns the new cache entry that should replace an existing one.Creates aResource
from a given response body.Creates aResource
from a given response body.abstract byte[]
Resource.get()
Returns resource content as a byte array.HttpCacheStorage.getEntries
(Collection<String> keys) Retrieves multiple cache entries stored under the given keys.Retrieves the cache entry stored under the given key or null if no entry exists under that key.Resource.getInputStream()
Returns resource content as anInputStream
.void
HttpCacheStorage.putEntry
(String key, HttpCacheEntry entry) Store a given cache entry under the given key.void
HttpCacheStorage.removeEntry
(String key) Deletes/invalidates/removes any cache entries currently stored under the given key.HttpCacheEntrySerializer.serialize
(HttpCacheStorageEntry entry) Serializes the given entry.void
HttpCacheStorage.updateEntry
(String key, HttpCacheCASOperation casOperation) Atomically applies the given callback to processChallenge an existing cache entry under a given key. -
Uses of ResourceIOException in org.apache.hc.client5.http.impl.cache
Methods in org.apache.hc.client5.http.impl.cache that throw ResourceIOExceptionModifier and TypeMethodDescriptionAbstractSerializingCacheStorage.bulkRestore
(Collection<String> storageKeys) CacheUpdateHandler.createCacheEntry
(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, org.apache.hc.core5.util.ByteArrayBuffer content, Instant requestSent, Instant responseReceived) Creates a cache entry for the given request, origin response message and response content.protected abstract void
ByteArrayCacheEntrySerializer.deserialize
(byte[] serializedObject) HttpByteArrayCacheEntrySerializer.deserialize
(byte[] serializedObject) NoopCacheEntrySerializer.deserialize
(HttpCacheStorageEntry cacheEntry) (package private) SimpleHttpResponse
CachingExecBase.generateCachedResponse
(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, HttpCacheEntry entry, Instant now) (package private) SimpleHttpResponse
CachedHttpResponseGenerator.generateResponse
(org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry) If it is legal to use cached content in response response to theHttpRequest
then generate anHttpResponse
based onHttpCacheEntry
.byte[]
FileResource.get()
byte[]
HeapResource.get()
private static String
HttpByteArrayCacheEntrySerializer.getCachePseudoHeaderAndRemove
(org.apache.hc.core5.http.HttpResponse response, String name) Get the string value for a single metadata pseudo-header, and remove it from the response object.private static Instant
HttpByteArrayCacheEntrySerializer.getCachePseudoHeaderDateAndRemove
(org.apache.hc.core5.http.HttpResponse response, String name) Get the date value for a single metadata pseudo-header, and remove it from the response object.final Map
<String, HttpCacheEntry> AbstractSerializingCacheStorage.getEntries
(Collection<String> keys) BasicHttpCacheStorage.getEntries
(Collection<String> keys) ManagedHttpCacheStorage.getEntries
(Collection<String> keys) final HttpCacheEntry
Gets an entry from the cache, if it existsprotected abstract CAS
AbstractSerializingCacheStorage.getForUpdateCAS
(String storageKey) FileResource.getInputStream()
protected abstract T
AbstractSerializingAsyncCacheStorage.getStorageObject
(CAS cas) protected abstract T
AbstractSerializingCacheStorage.getStorageObject
(CAS cas) HttpByteArrayCacheEntrySerializer.getVariantMapPseudoHeadersAndRemove
(org.apache.hc.core5.http.HttpResponse response) Get the variant map metadata pseudo-header, and remove it from the response object.final void
AbstractSerializingCacheStorage.putEntry
(String key, HttpCacheEntry entry) void
BasicHttpCacheStorage.putEntry
(String url, HttpCacheEntry entry) Places a HttpCacheEntry in the cachevoid
ManagedHttpCacheStorage.putEntry
(String url, HttpCacheEntry entry) final void
AbstractSerializingCacheStorage.removeEntry
(String key) void
BasicHttpCacheStorage.removeEntry
(String url) Removes a HttpCacheEntry from the cachevoid
ManagedHttpCacheStorage.removeEntry
(String url) protected abstract T
byte[]
ByteArrayCacheEntrySerializer.serialize
(HttpCacheStorageEntry cacheEntry) byte[]
HttpByteArrayCacheEntrySerializer.serialize
(HttpCacheStorageEntry httpCacheEntry) NoopCacheEntrySerializer.serialize
(HttpCacheStorageEntry cacheEntry) protected abstract void
CacheUpdateHandler.updateCacheEntry
(String requestId, HttpCacheEntry entry, Instant requestDate, Instant responseDate, org.apache.hc.core5.http.HttpResponse response) Update the entry with the new information from the response.protected abstract boolean
final void
AbstractSerializingCacheStorage.updateEntry
(String key, HttpCacheCASOperation casOperation) void
BasicHttpCacheStorage.updateEntry
(String url, HttpCacheCASOperation casOperation) void
ManagedHttpCacheStorage.updateEntry
(String url, HttpCacheCASOperation casOperation) CacheUpdateHandler.updateParentCacheEntry
(String requestId, HttpCacheEntry existing, HttpCacheEntry entry, String variantKey, String variantCacheKey)