- DateSupport - Class in org.apache.hc.client5.http.impl.cache
-
HTTP cache date support utilities.
- DateSupport() - Constructor for class org.apache.hc.client5.http.impl.cache.DateSupport
-
- DEFAULT - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
- DEFAULT_303_CACHING_ENABLED - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default setting for 303 caching
- DEFAULT_ASYNCHRONOUS_WORKERS - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default number of worker threads to allow for background revalidations
resulting from the stale-while-revalidate directive.
- DEFAULT_BACK_OFF_RATE - Static variable in class org.apache.hc.client5.http.impl.schedule.ExponentialBackOffSchedulingStrategy
-
- DEFAULT_HEURISTIC_CACHING_ENABLED - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default setting for heuristic caching
- DEFAULT_HEURISTIC_COEFFICIENT - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default coefficient used to heuristically determine freshness
lifetime from the Last-Modified time of a cache entry.
- DEFAULT_HEURISTIC_LIFETIME - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default lifetime to be assumed when we cannot calculate
freshness heuristically.
- DEFAULT_INITIAL_EXPIRY - Static variable in class org.apache.hc.client5.http.impl.schedule.ExponentialBackOffSchedulingStrategy
-
- DEFAULT_MAX_CACHE_ENTRIES - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default setting for the maximum number of cache entries
that will be retained.
- DEFAULT_MAX_EXPIRY - Static variable in class org.apache.hc.client5.http.impl.schedule.ExponentialBackOffSchedulingStrategy
-
- DEFAULT_MAX_OBJECT_SIZE_BYTES - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default setting for the maximum object size that will be
cached, in bytes.
- DEFAULT_MAX_UPDATE_RETRIES - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default setting for the number of retries on a failed
cache processChallenge
- DEFAULT_WEAK_ETAG_ON_PUTDELETE_ALLOWED - Static variable in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Default setting to allow weak tags on PUT/DELETE methods
- DefaultAsyncCacheInvalidator - Class in org.apache.hc.client5.http.impl.cache
-
Given a particular HTTP request / response pair, flush any cache entries
that this exchange would invalidate.
- DefaultAsyncCacheInvalidator() - Constructor for class org.apache.hc.client5.http.impl.cache.DefaultAsyncCacheInvalidator
-
- DefaultCacheInvalidator - Class in org.apache.hc.client5.http.impl.cache
-
Given a particular HTTP request / response pair, flush any cache entries
that this exchange would invalidate.
- DefaultCacheInvalidator() - Constructor for class org.apache.hc.client5.http.impl.cache.DefaultCacheInvalidator
-
- delete(String, FutureCallback<Boolean>) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingAsyncCacheStorage
-
- delete(String) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingCacheStorage
-
- delete(String) - Method in class org.apache.hc.client5.http.impl.cache.ehcache.EhcacheHttpCacheStorage
-
- delete(String, FutureCallback<Boolean>) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpAsyncCacheStorage
-
- delete(String) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
- DELETE_METHOD - Static variable in class org.apache.hc.client5.http.cache.HeaderConstants
-
- deserialize(T) - Method in interface org.apache.hc.client5.http.cache.HttpCacheEntrySerializer
-
Deserializes a cache entry from its serialized representation.
- deserialize(byte[]) - Method in class org.apache.hc.client5.http.impl.cache.ByteArrayCacheEntrySerializer
-
- deserialize(byte[]) - Method in class org.apache.hc.client5.http.impl.cache.HttpByteArrayCacheEntrySerializer
-
- deserialize(HttpCacheStorageEntry) - Method in class org.apache.hc.client5.http.impl.cache.NoopCacheEntrySerializer
-
- digestToStorageKey(String) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingAsyncCacheStorage
-
- digestToStorageKey(String) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingCacheStorage
-
- digestToStorageKey(String) - Method in class org.apache.hc.client5.http.impl.cache.ehcache.EhcacheHttpCacheStorage
-
- digestToStorageKey(String) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpAsyncCacheStorage
-
- digestToStorageKey(String) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
- dispose() - Method in class org.apache.hc.client5.http.cache.Resource
-
Indicates the system no longer needs to keep this
response body and any system resources associated with
it may be reclaimed.
- dispose() - Method in class org.apache.hc.client5.http.impl.cache.FileResource
-
- dispose() - Method in class org.apache.hc.client5.http.impl.cache.HeapResource
-
- generate(String, byte[]) - Method in interface org.apache.hc.client5.http.cache.ResourceFactory
-
Creates a
Resource
from a given response body.
- generate(String, byte[], int, int) - Method in interface org.apache.hc.client5.http.cache.ResourceFactory
-
Creates a
Resource
from a given response body.
- generate(String, byte[], int, int) - Method in class org.apache.hc.client5.http.impl.cache.FileResourceFactory
-
- generate(String, byte[]) - Method in class org.apache.hc.client5.http.impl.cache.FileResourceFactory
-
- generate(String, byte[], int, int) - Method in class org.apache.hc.client5.http.impl.cache.HeapResourceFactory
-
- generate(String, byte[]) - Method in class org.apache.hc.client5.http.impl.cache.HeapResourceFactory
-
- generateKey(URI) - Method in class org.apache.hc.client5.http.impl.cache.CacheKeyGenerator
-
Computes a key for the given request
URI
that can be used as
a unique identifier for cached resources.
- generateKey(HttpHost, HttpRequest) - Method in class org.apache.hc.client5.http.impl.cache.CacheKeyGenerator
-
Computes a key for the given HttpHost
and HttpRequest
that can be used as a unique identifier for cached resources.
- generateKey(HttpHost, HttpRequest, HttpCacheEntry) - Method in class org.apache.hc.client5.http.impl.cache.CacheKeyGenerator
-
Computes a key for the given HttpHost
and HttpRequest
that can be used as a unique identifier for cached resources.
- generateVariantKey(HttpRequest, HttpCacheEntry) - Method in class org.apache.hc.client5.http.impl.cache.CacheKeyGenerator
-
Computes a "variant key" from the headers of a given request that are
covered by the Vary header of a given cache entry.
- get() - Method in class org.apache.hc.client5.http.cache.Resource
-
Returns resource content as a byte array.
- get() - Method in class org.apache.hc.client5.http.impl.cache.FileResource
-
- get() - Method in class org.apache.hc.client5.http.impl.cache.HeapResource
-
- GET_METHOD - Static variable in class org.apache.hc.client5.http.cache.HeaderConstants
-
- getAsynchronousWorkers() - Method in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Returns the maximum number of threads to allow for background
revalidations due to the stale-while-revalidate
directive.
- getBackOffRate() - Method in class org.apache.hc.client5.http.impl.schedule.ExponentialBackOffSchedulingStrategy
-
- getCacheHits() - Method in class org.apache.hc.client5.http.impl.cache.CachingExecBase
-
Reports the number of times that the cache successfully responded
to an HttpRequest
without contacting the origin server.
- getCacheMisses() - Method in class org.apache.hc.client5.http.impl.cache.CachingExecBase
-
Reports the number of times that the cache contacted the origin
server because it had no appropriate response cached.
- getCacheResponseStatus() - Method in class org.apache.hc.client5.http.cache.HttpCacheContext
-
- getCacheUpdates() - Method in class org.apache.hc.client5.http.impl.cache.CachingExecBase
-
Reports the number of times that the cache was able to satisfy
a response by revalidating an existing but stale cache entry.
- getContent() - Method in class org.apache.hc.client5.http.cache.HttpCacheStorageEntry
-
- getCount(T) - Method in class org.apache.hc.client5.http.schedule.ConcurrentCountMap
-
- getDate() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Gets the Date value of the "Date" header or null if the header is missing or cannot be
parsed.
- getEntries(Collection<String>, FutureCallback<Map<String, HttpCacheEntry>>) - Method in interface org.apache.hc.client5.http.cache.HttpAsyncCacheStorage
-
Retrieves multiple cache entries stored under the given keys.
- getEntries(Collection<String>, FutureCallback<Map<String, HttpCacheEntry>>) - Method in class org.apache.hc.client5.http.cache.HttpAsyncCacheStorageAdaptor
-
- getEntries(Collection<String>) - Method in interface org.apache.hc.client5.http.cache.HttpCacheStorage
-
Retrieves multiple cache entries stored under the given keys.
- getEntries(Collection<String>, FutureCallback<Map<String, HttpCacheEntry>>) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingAsyncCacheStorage
-
- getEntries(Collection<String>) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingCacheStorage
-
- getEntries(Collection<String>) - Method in class org.apache.hc.client5.http.impl.cache.BasicHttpCacheStorage
-
- getEntries(Collection<String>) - Method in class org.apache.hc.client5.http.impl.cache.ManagedHttpCacheStorage
-
- getEntry(String, FutureCallback<HttpCacheEntry>) - Method in interface org.apache.hc.client5.http.cache.HttpAsyncCacheStorage
-
Retrieves the cache entry stored under the given key
or null if no entry exists under that key.
- getEntry(String, FutureCallback<HttpCacheEntry>) - Method in class org.apache.hc.client5.http.cache.HttpAsyncCacheStorageAdaptor
-
- getEntry(String) - Method in interface org.apache.hc.client5.http.cache.HttpCacheStorage
-
Retrieves the cache entry stored under the given key
or null if no entry exists under that key.
- getEntry(String, FutureCallback<HttpCacheEntry>) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingAsyncCacheStorage
-
- getEntry(String) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingCacheStorage
-
- getEntry(String) - Method in class org.apache.hc.client5.http.impl.cache.BasicHttpCacheStorage
-
Gets an entry from the cache, if it exists
- getEntry(String) - Method in class org.apache.hc.client5.http.impl.cache.ManagedHttpCacheStorage
-
- getFirstHeader(String) - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns the first header from the origin response with the given
name.
- getForUpdateCAS(String, FutureCallback<CAS>) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingAsyncCacheStorage
-
- getForUpdateCAS(String) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingCacheStorage
-
- getForUpdateCAS(String) - Method in class org.apache.hc.client5.http.impl.cache.ehcache.EhcacheHttpCacheStorage
-
- getForUpdateCAS(String, FutureCallback<CASValue<Object>>) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpAsyncCacheStorage
-
- getForUpdateCAS(String) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
- getHeader(String) - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
- getHeaders() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns all the headers that were on the origin response.
- getHeaders(String) - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Gets all the headers with the given name that were on the origin
response.
- getHeuristicCoefficient() - Method in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Returns lifetime coefficient used in heuristic freshness caching.
- getHeuristicDefaultLifetime() - Method in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Get the default lifetime to be used if heuristic freshness calculation is
not possible.
- getInitialExpiry() - Method in class org.apache.hc.client5.http.impl.schedule.ExponentialBackOffSchedulingStrategy
-
- getInputStream() - Method in class org.apache.hc.client5.http.cache.Resource
-
- getInputStream() - Method in class org.apache.hc.client5.http.impl.cache.FileResource
-
- getInstant() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
- getKey() - Method in class org.apache.hc.client5.http.cache.HttpCacheStorageEntry
-
- getLastHeader(String) - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
- getMaxCacheEntries() - Method in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Returns the maximum number of cache entries the cache will retain.
- getMaxExpiry() - Method in class org.apache.hc.client5.http.impl.schedule.ExponentialBackOffSchedulingStrategy
-
- getMaxObjectSize() - Method in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Returns the current maximum response body size that will be cached.
- getMaxUpdateRetries() - Method in class org.apache.hc.client5.http.impl.cache.CacheConfig
-
Returns the number of times to retry a cache processChallenge on failure
- getRequestDate() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
- getRequestInstant() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns the time the associated origin request was initiated by the
caching module.
- getRequestMethod() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns the HTTP request method that was used to create the cached
response entry.
- getRequestUri(HttpRequest, HttpHost) - Static method in class org.apache.hc.client5.http.impl.cache.HttpCacheSupport
-
Returns text representation of the request URI of the given HttpRequest
.
- getResource() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns the
Resource
containing the origin response body.
- getResponseDate() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
- getResponseInstant() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns the time the origin response was received by the caching module.
- getStatus() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns the status from the origin HttpResponse
.
- getStorageObject(CAS) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingAsyncCacheStorage
-
- getStorageObject(CAS) - Method in class org.apache.hc.client5.http.impl.cache.AbstractSerializingCacheStorage
-
- getStorageObject(T) - Method in class org.apache.hc.client5.http.impl.cache.ehcache.EhcacheHttpCacheStorage
-
- getStorageObject(CASValue<Object>) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpAsyncCacheStorage
-
- getStorageObject(CASValue<Object>) - Method in class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
- getVariantMap() - Method in class org.apache.hc.client5.http.cache.HttpCacheEntry
-
Returns an index about where in the cache different variants for
a given resource are stored.
- makeByteArrayInputStream(byte[]) - Method in class org.apache.hc.client5.http.impl.cache.HttpByteArrayCacheEntrySerializer
-
Helper method to make a new ByteArrayInputStream.
- makeHttpResponseParser() - Method in class org.apache.hc.client5.http.impl.cache.HttpByteArrayCacheEntrySerializer
-
Helper method to make a new HTTP Response parser.
- makeHttpResponseWriter(SessionOutputBuffer) - Method in class org.apache.hc.client5.http.impl.cache.HttpByteArrayCacheEntrySerializer
-
Helper method to make a new HTTP response writer.
- ManagedHttpCacheStorage - Class in org.apache.hc.client5.http.impl.cache
-
HttpCacheStorage
implementation capable of deallocating resources associated with
the cache entries.
- ManagedHttpCacheStorage(CacheConfig) - Constructor for class org.apache.hc.client5.http.impl.cache.ManagedHttpCacheStorage
-
- MAX_FORWARDS - Static variable in class org.apache.hc.client5.http.cache.HeaderConstants
-
- MemcachedHttpAsyncCacheStorage - Class in org.apache.hc.client5.http.impl.cache.memcached
-
This class is a storage backend that uses an external memcached
for storing cached origin responses.
- MemcachedHttpAsyncCacheStorage(InetSocketAddress) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpAsyncCacheStorage
-
Create a storage backend talking to a memcached instance
listening on the specified host and port.
- MemcachedHttpAsyncCacheStorage(MemcachedClient) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpAsyncCacheStorage
-
Create a storage backend using the pre-configured given
memcached client.
- MemcachedHttpAsyncCacheStorage(MemcachedClient, CacheConfig, HttpCacheEntrySerializer<byte[]>, KeyHashingScheme) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpAsyncCacheStorage
-
Create a storage backend using the given memcached client and
applying the given cache configuration, serialization, and hashing
mechanisms.
- MemcachedHttpCacheStorage - Class in org.apache.hc.client5.http.impl.cache.memcached
-
This class is a storage backend that uses an external memcached
for storing cached origin responses.
- MemcachedHttpCacheStorage(InetSocketAddress) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
Create a storage backend talking to a memcached instance
listening on the specified host and port.
- MemcachedHttpCacheStorage(MemcachedClient) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
Create a storage backend using the pre-configured given
memcached client.
- MemcachedHttpCacheStorage(MemcachedClientIF) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
Create a storage backend using the pre-configured given
memcached client.
- MemcachedHttpCacheStorage(MemcachedClient, CacheConfig, HttpCacheEntrySerializer<byte[]>, KeyHashingScheme) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
Create a storage backend using the given memcached client and
applying the given cache configuration, serialization, and hashing
mechanisms.
- MemcachedHttpCacheStorage(MemcachedClientIF, CacheConfig, HttpCacheEntrySerializer<byte[]>, KeyHashingScheme) - Constructor for class org.apache.hc.client5.http.impl.cache.memcached.MemcachedHttpCacheStorage
-
Create a storage backend using the given memcached client and
applying the given cache configuration, serialization, and hashing
mechanisms.
- MemcachedKeyHashingException - Exception in org.apache.hc.client5.http.impl.cache.memcached
-
Signals a problem encountered when trying to map a
logical "storage key" to a "cache key" suitable for use with
memcached.
- MemcachedKeyHashingException(Throwable) - Constructor for exception org.apache.hc.client5.http.impl.cache.memcached.MemcachedKeyHashingException
-
- MemcachedOperationTimeoutException - Exception in org.apache.hc.client5.http.impl.cache.memcached
-
Signals memcached operation timeout.
- MemcachedOperationTimeoutException(Throwable) - Constructor for exception org.apache.hc.client5.http.impl.cache.memcached.MemcachedOperationTimeoutException
-