CacheSuitability |
CachedResponseSuitabilityChecker.assessSuitability(RequestCacheControl requestCacheControl,
ResponseCacheControl responseCacheControl,
org.apache.hc.core5.http.HttpRequest request,
HttpCacheEntry entry,
java.time.Instant now) |
Determine if I can utilize the given HttpCacheEntry to respond to the given
HttpRequest.
|
T |
ConditionalRequestBuilder.buildConditionalRequest(ResponseCacheControl cacheControl,
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 java.time.Duration |
ResponseCachingPolicy.calculateFreshnessLifetime(ResponseCacheControl cacheControl,
java.time.Instant responseDate,
java.time.Instant responseExpires) |
Calculates the freshness lifetime of a response, based on the headers in the response.
|
private boolean |
ResponseCachingPolicy.expiresHeaderLessOrEqualToDateHeaderAndNoCacheControl(ResponseCacheControl cacheControl,
java.time.Instant responseDate,
java.time.Instant expires) |
|
org.apache.hc.core5.util.TimeValue |
CacheValidityPolicy.getFreshnessLifetime(ResponseCacheControl responseCacheControl,
HttpCacheEntry entry) |
Calculate the freshness lifetime of a response based on the provided cache control and cache entry.
|
private void |
AsyncCachingExec.handleCacheHit(RequestCacheControl requestCacheControl,
ResponseCacheControl responseCacheControl,
CacheHit hit,
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) |
|
private org.apache.hc.core5.http.ClassicHttpResponse |
CachingExec.handleCacheHit(RequestCacheControl requestCacheControl,
ResponseCacheControl responseCacheControl,
CacheHit hit,
org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
|
protected boolean |
ResponseCachingPolicy.isExplicitlyCacheable(ResponseCacheControl cacheControl,
org.apache.hc.core5.http.HttpResponse response) |
|
protected boolean |
ResponseCachingPolicy.isExplicitlyNonCacheable(ResponseCacheControl cacheControl) |
Determines whether the given CacheControl object indicates that the response is explicitly non-cacheable.
|
protected boolean |
ResponseCachingPolicy.isHeuristicallyCacheable(ResponseCacheControl cacheControl,
int status,
java.time.Instant responseDate,
java.time.Instant responseExpires) |
|
boolean |
ResponseCachingPolicy.isResponseCacheable(ResponseCacheControl cacheControl,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.HttpResponse response) |
Determine if the HttpResponse gotten from the origin is a
cacheable response.
|
(package private) boolean |
CachedResponseSuitabilityChecker.isResponseNoCache(ResponseCacheControl responseCacheControl,
HttpCacheEntry entry) |
Determines if the given HttpCacheEntry requires revalidation based on the presence of the no-cache directive
in the Cache-Control header.
|
boolean |
CachedResponseSuitabilityChecker.isSuitableIfError(RequestCacheControl requestCacheControl,
ResponseCacheControl responseCacheControl,
HttpCacheEntry entry,
java.time.Instant now) |
|
(package private) void |
AsyncCachingExec.revalidateCacheEntry(ResponseCacheControl responseCacheControl,
CacheHit hit,
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) |
|
(package private) org.apache.hc.core5.http.ClassicHttpResponse |
CachingExec.revalidateCacheEntry(ResponseCacheControl responseCacheControl,
CacheHit hit,
org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
|
(package private) void |
AsyncCachingExec.revalidateCacheEntryWithFallback(RequestCacheControl requestCacheControl,
ResponseCacheControl responseCacheControl,
CacheHit hit,
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) |
|
(package private) org.apache.hc.core5.http.ClassicHttpResponse |
CachingExec.revalidateCacheEntryWithFallback(RequestCacheControl requestCacheControl,
ResponseCacheControl responseCacheControl,
CacheHit hit,
org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
|
(package private) void |
AsyncCachingExec.revalidateCacheEntryWithoutFallback(ResponseCacheControl responseCacheControl,
CacheHit hit,
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) |
|
(package private) org.apache.hc.core5.http.ClassicHttpResponse |
CachingExec.revalidateCacheEntryWithoutFallback(ResponseCacheControl responseCacheControl,
CacheHit hit,
org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
|