boolean |
CachedResponseSuitabilityChecker.allConditionalsMatch(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry,
java.time.Instant now) |
Check that conditionals that are part of this request match
|
T |
ConditionalRequestBuilder.buildConditionalRequest(T request,
HttpCacheEntry cacheEntry) |
When a HttpCacheEntry is stale but 'might' be used as a response
to an HttpRequest we will attempt to revalidate
the entry with the origin.
|
private boolean |
CachedResponseSuitabilityChecker.cacheEntryDoesNotContainMethodAndEntity(HttpCacheEntry entry) |
|
boolean |
CachedResponseSuitabilityChecker.canCachedResponseBeUsed(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry,
java.time.Instant now) |
Determine if I can utilize a HttpCacheEntry to respond to the given
HttpRequest
|
protected boolean |
CacheValidityPolicy.contentLengthHeaderMatchesActualLength(HttpCacheEntry entry) |
This matters for deciding whether the cache entry is valid to serve as a
response.
|
private boolean |
CachedResponseSuitabilityChecker.entryIsNotA204Response(HttpCacheEntry entry) |
|
private boolean |
CachedResponseSuitabilityChecker.etagValidatorMatches(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry) |
Check entry against If-None-Match
|
(package private) boolean |
CachingExecBase.explicitFreshnessRequest(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry,
java.time.Instant now) |
|
(package private) SimpleHttpResponse |
CachingExecBase.generateCachedResponse(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context,
HttpCacheEntry entry,
java.time.Instant now) |
|
java.lang.String |
BasicHttpAsyncCache.generateKey(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry cacheEntry) |
|
java.lang.String |
BasicHttpCache.generateKey(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry cacheEntry) |
|
java.lang.String |
CacheKeyGenerator.generateKey(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry) |
Computes a key for the given HttpHost and HttpRequest
that can be used as a unique identifier for cached resources.
|
java.lang.String |
HttpAsyncCache.generateKey(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry cacheEntry) |
|
java.lang.String |
HttpCache.generateKey(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry cacheEntry) |
|
(package private) SimpleHttpResponse |
CachedHttpResponseGenerator.generateNotModifiedResponse(HttpCacheEntry entry) |
|
(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 the HttpRequest then
generate an HttpResponse based on HttpCacheEntry.
|
java.lang.String |
CacheKeyGenerator.generateVariantKey(org.apache.hc.core5.http.HttpRequest req,
HttpCacheEntry entry) |
Computes a "variant key" from the headers of a given request that are
covered by the Vary header of a given cache entry.
|
protected long |
CacheValidityPolicy.getAgeValue(HttpCacheEntry entry) |
|
protected org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getApparentAge(HttpCacheEntry entry) |
|
protected org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getCorrectedInitialAge(HttpCacheEntry entry) |
|
protected org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getCorrectedReceivedAge(HttpCacheEntry entry) |
|
org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getCurrentAge(HttpCacheEntry entry,
java.time.Instant now) |
|
org.apache.hc.core5.util.TimeValue |
HttpByteArrayCacheEntrySerializer.NoAgeCacheValidityPolicy.getCurrentAge(HttpCacheEntry entry,
java.time.Instant now) |
|
org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getFreshnessLifetime(HttpCacheEntry entry) |
|
org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getHeuristicFreshnessLifetime(HttpCacheEntry entry,
float coefficient,
org.apache.hc.core5.util.TimeValue defaultLifetime) |
|
protected long |
CacheValidityPolicy.getMaxAge(HttpCacheEntry entry) |
|
protected org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getResidentTime(HttpCacheEntry entry,
java.time.Instant now) |
|
protected org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getResponseDelay(HttpCacheEntry entry) |
|
org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getStaleness(HttpCacheEntry entry,
java.time.Instant now) |
|
private void |
AsyncCachingExec.handleCacheHit(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback,
HttpCacheEntry entry) |
|
private org.apache.hc.core5.http.ClassicHttpResponse |
CachingExec.handleCacheHit(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain,
HttpCacheEntry entry) |
|
(package private) SimpleHttpResponse |
CachingExecBase.handleRevalidationFailure(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context,
HttpCacheEntry entry,
java.time.Instant now) |
|
boolean |
CacheValidityPolicy.hasCacheControlDirective(HttpCacheEntry entry,
java.lang.String directive) |
|
private boolean |
CachedResponseSuitabilityChecker.hasUnsupportedCacheEntryForGet(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry) |
|
(package private) static boolean |
CacheInvalidatorBase.isAHeadCacheEntry(HttpCacheEntry parentCacheEntry) |
|
private boolean |
CachedResponseSuitabilityChecker.isFreshEnough(HttpCacheEntry entry,
org.apache.hc.core5.http.HttpRequest request,
java.time.Instant now) |
|
boolean |
CacheValidityPolicy.isResponseFresh(HttpCacheEntry entry,
java.time.Instant now) |
|
boolean |
CacheValidityPolicy.isResponseHeuristicallyFresh(HttpCacheEntry entry,
java.time.Instant now,
float coefficient,
org.apache.hc.core5.util.TimeValue defaultLifetime) |
Decides if this response is fresh enough based Last-Modified and Date, if available.
|
boolean |
CacheValidityPolicy.isRevalidatable(HttpCacheEntry entry) |
|
private void |
ManagedHttpCacheStorage.keepResourceReference(HttpCacheEntry entry) |
|
private boolean |
CachedResponseSuitabilityChecker.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 invalid as per
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
|
boolean |
CacheValidityPolicy.mayReturnStaleIfError(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry,
java.time.Instant now) |
|
boolean |
CacheValidityPolicy.mayReturnStaleWhileRevalidating(HttpCacheEntry entry,
java.time.Instant now) |
|
private org.apache.hc.core5.http.Header[] |
CacheUpdateHandler.mergeHeaders(HttpCacheEntry entry,
org.apache.hc.core5.http.HttpResponse response) |
|
boolean |
CacheValidityPolicy.mustRevalidate(HttpCacheEntry entry) |
|
private boolean |
CachedResponseSuitabilityChecker.originInsistsOnFreshness(HttpCacheEntry entry) |
|
boolean |
CacheValidityPolicy.proxyRevalidate(HttpCacheEntry entry) |
|
org.apache.hc.core5.concurrent.Cancellable |
AbstractSerializingAsyncCacheStorage.putEntry(java.lang.String key,
HttpCacheEntry entry,
org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback) |
|
void |
AbstractSerializingCacheStorage.putEntry(java.lang.String key,
HttpCacheEntry entry) |
|
void |
BasicHttpCacheStorage.putEntry(java.lang.String url,
HttpCacheEntry entry) |
Places a HttpCacheEntry in the cache
|
void |
ManagedHttpCacheStorage.putEntry(java.lang.String url,
HttpCacheEntry entry) |
|
(package private) static boolean |
CacheInvalidatorBase.responseAndEntryEtagsDiffer(org.apache.hc.core5.http.HttpResponse response,
HttpCacheEntry entry) |
|
(package private) static boolean |
CacheInvalidatorBase.responseDateOlderThanEntryDate(org.apache.hc.core5.http.HttpResponse response,
HttpCacheEntry entry) |
|
private boolean |
CachedHttpResponseGenerator.responseShouldContainEntity(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry cacheEntry) |
|
(package private) void |
AsyncCachingExec.revalidateCacheEntry(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.nio.AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback,
HttpCacheEntry cacheEntry) |
|
(package private) org.apache.hc.core5.http.ClassicHttpResponse |
CachingExec.revalidateCacheEntry(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain,
HttpCacheEntry cacheEntry) |
|
(package private) boolean |
CachingExecBase.revalidationResponseIsTooOld(org.apache.hc.core5.http.HttpResponse backendResponse,
HttpCacheEntry cacheEntry) |
|
(package private) static boolean |
CacheInvalidatorBase.shouldInvalidateHeadCacheEntry(org.apache.hc.core5.http.HttpRequest req,
HttpCacheEntry parentCacheEntry) |
|
(package private) boolean |
CachingExecBase.shouldSendNotModifiedResponse(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry responseEntry) |
|
(package private) boolean |
CachingExecBase.staleResponseNotAllowed(org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry,
java.time.Instant now) |
|
(package private) org.apache.hc.core5.concurrent.Cancellable |
BasicHttpAsyncCache.storeEntry(java.lang.String cacheKey,
HttpCacheEntry entry,
org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback) |
|
(package private) void |
BasicHttpCache.storeEntry(java.lang.String cacheKey,
HttpCacheEntry entry) |
|
(package private) org.apache.hc.core5.concurrent.Cancellable |
BasicHttpAsyncCache.storeInCache(java.lang.String cacheKey,
org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry,
org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback) |
|
(package private) void |
BasicHttpCache.storeInCache(java.lang.String cacheKey,
org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry) |
|
(package private) org.apache.hc.core5.concurrent.Cancellable |
BasicHttpAsyncCache.storeVariantEntry(java.lang.String cacheKey,
org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest req,
HttpCacheEntry entry,
org.apache.hc.core5.concurrent.FutureCallback<java.lang.Boolean> callback) |
|
(package private) void |
BasicHttpCache.storeVariantEntry(java.lang.String cacheKey,
org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest req,
HttpCacheEntry entry) |
|
(package private) SimpleHttpResponse |
CachingExecBase.unvalidatedCacheHit(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context,
HttpCacheEntry entry) |
|
org.apache.hc.core5.concurrent.Cancellable |
BasicHttpAsyncCache.updateCacheEntry(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry stale,
org.apache.hc.core5.http.HttpResponse originResponse,
java.time.Instant requestSent,
java.time.Instant responseReceived,
org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) |
|
HttpCacheEntry |
BasicHttpCache.updateCacheEntry(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry stale,
org.apache.hc.core5.http.HttpResponse originResponse,
java.time.Instant requestSent,
java.time.Instant responseReceived) |
|
HttpCacheEntry |
CacheUpdateHandler.updateCacheEntry(java.lang.String requestId,
HttpCacheEntry entry,
java.time.Instant requestDate,
java.time.Instant responseDate,
org.apache.hc.core5.http.HttpResponse response) |
Update the entry with the new information from the response.
|
org.apache.hc.core5.concurrent.Cancellable |
HttpAsyncCache.updateCacheEntry(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry stale,
org.apache.hc.core5.http.HttpResponse originResponse,
java.time.Instant requestSent,
java.time.Instant responseReceived,
org.apache.hc.core5.concurrent.FutureCallback<HttpCacheEntry> callback) |
|
HttpCacheEntry |
HttpCache.updateCacheEntry(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry stale,
org.apache.hc.core5.http.HttpResponse originResponse,
java.time.Instant requestSent,
java.time.Instant responseReceived) |
|
HttpCacheEntry |
CacheUpdateHandler.updateParentCacheEntry(java.lang.String requestId,
HttpCacheEntry existing,
HttpCacheEntry entry,
java.lang.String variantKey,
java.lang.String variantCacheKey) |
|