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 aResourcefrom a given response body.Creates aResourcefrom 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.voidHttpCacheStorage.putEntry(String key, HttpCacheEntry entry) Store a given cache entry under the given key.voidHttpCacheStorage.removeEntry(String key) Deletes/invalidates/removes any cache entries currently stored under the given key.HttpCacheEntrySerializer.serialize(HttpCacheStorageEntry entry) Serializes the given entry.voidHttpCacheStorage.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 voidByteArrayCacheEntrySerializer.deserialize(byte[] serializedObject) HttpByteArrayCacheEntrySerializer.deserialize(byte[] serializedObject) NoopCacheEntrySerializer.deserialize(HttpCacheStorageEntry cacheEntry) (package private) SimpleHttpResponseCachingExecBase.generateCachedResponse(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, HttpCacheEntry entry, Instant now) (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.byte[]FileResource.get()byte[]HeapResource.get()private static StringHttpByteArrayCacheEntrySerializer.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 InstantHttpByteArrayCacheEntrySerializer.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 HttpCacheEntryGets an entry from the cache, if it existsprotected abstract CASAbstractSerializingCacheStorage.getForUpdateCAS(String storageKey) FileResource.getInputStream()protected abstract TAbstractSerializingAsyncCacheStorage.getStorageObject(CAS cas) protected abstract TAbstractSerializingCacheStorage.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 voidAbstractSerializingCacheStorage.putEntry(String key, HttpCacheEntry entry) voidBasicHttpCacheStorage.putEntry(String url, HttpCacheEntry entry) Places a HttpCacheEntry in the cachevoidManagedHttpCacheStorage.putEntry(String url, HttpCacheEntry entry) final voidAbstractSerializingCacheStorage.removeEntry(String key) voidBasicHttpCacheStorage.removeEntry(String url) Removes a HttpCacheEntry from the cachevoidManagedHttpCacheStorage.removeEntry(String url) protected abstract Tbyte[]ByteArrayCacheEntrySerializer.serialize(HttpCacheStorageEntry cacheEntry) byte[]HttpByteArrayCacheEntrySerializer.serialize(HttpCacheStorageEntry httpCacheEntry) NoopCacheEntrySerializer.serialize(HttpCacheStorageEntry cacheEntry) protected abstract voidCacheUpdateHandler.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 booleanfinal voidAbstractSerializingCacheStorage.updateEntry(String key, HttpCacheCASOperation casOperation) voidBasicHttpCacheStorage.updateEntry(String url, HttpCacheCASOperation casOperation) voidManagedHttpCacheStorage.updateEntry(String url, HttpCacheCASOperation casOperation) CacheUpdateHandler.updateParentCacheEntry(String requestId, HttpCacheEntry existing, HttpCacheEntry entry, String variantKey, String variantCacheKey)