Uses of Class
org.apache.hc.client5.http.cache.ResponseCacheControl
Packages that use ResponseCacheControl
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 ResponseCacheControl in org.apache.hc.client5.http.cache
Fields in org.apache.hc.client5.http.cache declared as ResponseCacheControlModifier and TypeFieldDescriptionstatic final ResponseCacheControlResponseCacheControl.DEFAULTprivate ResponseCacheControlHttpCacheContext.responseCacheControlMethods in org.apache.hc.client5.http.cache that return ResponseCacheControlModifier and TypeMethodDescriptionResponseCacheControl.Builder.build()HttpCacheContext.Delegate.getResponseCacheControl()HttpCacheContext.getResponseCacheControl()Represents cache control enforced by the server.final ResponseCacheControlHttpCacheContext.getResponseCacheControlOrDefault()Represents cache control enforced by the server orResponseCacheControl.DEFAULTif not explicitly set in the context.Methods in org.apache.hc.client5.http.cache with parameters of type ResponseCacheControlModifier and TypeMethodDescriptionvoidHttpCacheContext.Delegate.setResponseCacheControl(ResponseCacheControl responseCacheControl) voidHttpCacheContext.setResponseCacheControl(ResponseCacheControl responseCacheControl) -
Uses of ResponseCacheControl in org.apache.hc.client5.http.impl.cache
Methods in org.apache.hc.client5.http.impl.cache that return ResponseCacheControlModifier and TypeMethodDescriptionfinal ResponseCacheControlCacheControlHeaderParser.parse(HttpCacheEntry cacheEntry) final ResponseCacheControlCacheControlHeaderParser.parse(org.apache.hc.core5.http.HttpResponse response) final ResponseCacheControlCacheControlHeaderParser.parseResponse(Iterator<org.apache.hc.core5.http.Header> headerIterator) Parses the specified response header and returns a newResponseCacheControlinstance containing the relevant caching directives.Methods in org.apache.hc.client5.http.impl.cache with parameters of type ResponseCacheControlModifier and TypeMethodDescriptionCachedResponseSuitabilityChecker.assessSuitability(RequestCacheControl requestCacheControl, ResponseCacheControl responseCacheControl, org.apache.hc.core5.http.HttpRequest request, HttpCacheEntry entry, Instant now) Determine if I can utilize the givenHttpCacheEntryto respond to the givenHttpRequest.ConditionalRequestBuilder.buildConditionalRequest(ResponseCacheControl cacheControl, T request, HttpCacheEntry cacheEntry) When aHttpCacheEntryis stale but 'might' be used as a response to anHttpRequestwe will attempt to revalidate the entry with the origin.private DurationResponseCachingPolicy.calculateFreshnessLifetime(ResponseCacheControl cacheControl, Instant responseDate, Instant responseExpires) Calculates the freshness lifetime of a response, based on the headers in the response.private booleanResponseCachingPolicy.expiresHeaderLessOrEqualToDateHeaderAndNoCacheControl(ResponseCacheControl cacheControl, Instant responseDate, Instant expires) org.apache.hc.core5.util.TimeValueCacheValidityPolicy.getFreshnessLifetime(ResponseCacheControl responseCacheControl, HttpCacheEntry entry) Calculate the freshness lifetime of a response based on the provided cache control and cache entry.private voidAsyncCachingExec.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.ClassicHttpResponseCachingExec.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 booleanResponseCachingPolicy.isExplicitlyCacheable(ResponseCacheControl cacheControl, org.apache.hc.core5.http.HttpResponse response) protected booleanResponseCachingPolicy.isExplicitlyNonCacheable(ResponseCacheControl cacheControl) Determines whether the given CacheControl object indicates that the response is explicitly non-cacheable.protected booleanResponseCachingPolicy.isHeuristicallyCacheable(ResponseCacheControl cacheControl, int status, Instant responseDate, Instant responseExpires) booleanResponseCachingPolicy.isResponseCacheable(ResponseCacheControl cacheControl, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response) Determine if theHttpResponsegotten from the origin is a cacheable response.(package private) booleanCachedResponseSuitabilityChecker.isResponseNoCache(ResponseCacheControl responseCacheControl, HttpCacheEntry entry) Determines if the givenHttpCacheEntryrequires revalidation based on the presence of theno-cachedirective in the Cache-Control header.booleanCachedResponseSuitabilityChecker.isSuitableIfError(RequestCacheControl requestCacheControl, ResponseCacheControl responseCacheControl, HttpCacheEntry entry, Instant now) (package private) voidAsyncCachingExec.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.ClassicHttpResponseCachingExec.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) voidAsyncCachingExec.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.ClassicHttpResponseCachingExec.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) voidAsyncCachingExec.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.ClassicHttpResponseCachingExec.revalidateCacheEntryWithoutFallback(ResponseCacheControl responseCacheControl, CacheHit hit, org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain)