Interface HttpCache
-
- All Known Implementing Classes:
BasicHttpCache
interface HttpCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidevictInvalidatedEntries(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response)EvictsHttpCacheEntrys invalidated by the given message exchange.java.util.List<CacheHit>getVariants(CacheHit hit)Retrieves variantHttpCacheEntrys for the given hit.CacheMatchmatch(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request)Returns a result with either a fully matchingHttpCacheEntrya partial match with a list of known variants or null if no match could be found.CacheHitstore(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, org.apache.hc.core5.util.ByteArrayBuffer content, java.time.Instant requestSent, java.time.Instant responseReceived)StoresHttpRequest/HttpResponseexchange details in the cache.CacheHitstoreFromNegotiated(CacheHit negotiated, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)CacheHitupdate(CacheHit stale, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)UpdatesHttpCacheEntryusing details from a 304HttpResponseand updates the root entry if the given cache entry represents a variant.
-
-
-
Method Detail
-
match
CacheMatch match(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request)
Returns a result with either a fully matchingHttpCacheEntrya partial match with a list of known variants or null if no match could be found.
-
getVariants
java.util.List<CacheHit> getVariants(CacheHit hit)
Retrieves variantHttpCacheEntrys for the given hit.
-
store
CacheHit store(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, org.apache.hc.core5.util.ByteArrayBuffer content, java.time.Instant requestSent, java.time.Instant responseReceived)
StoresHttpRequest/HttpResponseexchange details in the cache.
-
update
CacheHit update(CacheHit stale, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)
UpdatesHttpCacheEntryusing details from a 304HttpResponseand updates the root entry if the given cache entry represents a variant.
-
storeFromNegotiated
CacheHit storeFromNegotiated(CacheHit negotiated, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse originResponse, java.time.Instant requestSent, java.time.Instant responseReceived)
-
evictInvalidatedEntries
void evictInvalidatedEntries(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response)EvictsHttpCacheEntrys invalidated by the given message exchange.
-
-