Uses of Class
org.apache.hc.client5.http.cache.RequestCacheControl
Packages that use RequestCacheControl
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 RequestCacheControl in org.apache.hc.client5.http.cache
Fields in org.apache.hc.client5.http.cache declared as RequestCacheControlModifier and TypeFieldDescriptionprivate RequestCacheControlCacheContextBuilder.cacheControlstatic final RequestCacheControlRequestCacheControl.DEFAULTprivate RequestCacheControlHttpCacheContext.requestCacheControlMethods in org.apache.hc.client5.http.cache that return RequestCacheControlModifier and TypeMethodDescriptionRequestCacheControl.Builder.build()HttpCacheContext.Delegate.getRequestCacheControl()HttpCacheContext.getRequestCacheControl()Represents cache control requested by the client.final RequestCacheControlHttpCacheContext.getRequestCacheControlOrDefault()Returns cache control requested by the client orRequestCacheControl.DEFAULTif not explicitly set in the context.Methods in org.apache.hc.client5.http.cache with parameters of type RequestCacheControlModifier and TypeMethodDescriptionCacheContextBuilder.setCacheControl(RequestCacheControl cacheControl) voidHttpCacheContext.Delegate.setRequestCacheControl(RequestCacheControl requestCacheControl) voidHttpCacheContext.setRequestCacheControl(RequestCacheControl requestCacheControl) -
Uses of RequestCacheControl in org.apache.hc.client5.http.impl.cache
Methods in org.apache.hc.client5.http.impl.cache that return RequestCacheControlModifier and TypeMethodDescriptionfinal RequestCacheControlCacheControlHeaderParser.parse(org.apache.hc.core5.http.HttpRequest request) final RequestCacheControlCacheControlHeaderParser.parseRequest(Iterator<org.apache.hc.core5.http.Header> headerIterator) Parses the specified request header and returns a newRequestCacheControlinstance containing the relevant caching directives.Methods in org.apache.hc.client5.http.impl.cache with parameters of type RequestCacheControlModifier 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.booleanCacheableRequestPolicy.canBeServedFromCache(RequestCacheControl cacheControl, org.apache.hc.core5.http.HttpRequest request) Determines if an HttpRequest can be served from the cache.List<org.apache.hc.core5.http.NameValuePair> CacheControlHeaderGenerator.convert(RequestCacheControl cacheControl) org.apache.hc.core5.http.HeaderCacheControlHeaderGenerator.generate(RequestCacheControl cacheControl) voidCacheControlHeaderGenerator.generate(RequestCacheControl cacheControl, org.apache.hc.core5.http.HttpMessage message) 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) private voidAsyncCachingExec.handleCacheMiss(RequestCacheControl requestCacheControl, CacheHit partialMatch, 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.handleCacheMiss(RequestCacheControl requestCacheControl, CacheHit partialMatch, org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain) booleanCachedResponseSuitabilityChecker.isSuitableIfError(RequestCacheControl requestCacheControl, ResponseCacheControl responseCacheControl, HttpCacheEntry entry, Instant now) (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)