Class CacheInvalidatorBase
- java.lang.Object
-
- org.apache.hc.client5.http.impl.cache.CacheInvalidatorBase
-
- Direct Known Subclasses:
DefaultAsyncCacheInvalidator,DefaultCacheInvalidator
class CacheInvalidatorBase extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CacheInvalidatorBase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.net.URIgetContentLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response)(package private) static java.net.URIgetLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response)private static java.net.URIgetLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response, java.lang.String headerName)(package private) static booleanisAHeadCacheEntry(HttpCacheEntry parentCacheEntry)(package private) static booleanisSameHost(java.net.URI requestURI, java.net.URI targetURI)(package private) static booleannotGetOrHeadRequest(java.lang.String method)(package private) static booleanrequestIsGet(org.apache.hc.core5.http.HttpRequest req)(package private) static booleanrequestShouldNotBeCached(org.apache.hc.core5.http.HttpRequest req)(package private) static booleanresponseAndEntryEtagsDiffer(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)(package private) static booleanresponseDateOlderThanEntryDate(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)(package private) static booleanshouldInvalidateHeadCacheEntry(org.apache.hc.core5.http.HttpRequest req, HttpCacheEntry parentCacheEntry)
-
-
-
Method Detail
-
shouldInvalidateHeadCacheEntry
static boolean shouldInvalidateHeadCacheEntry(org.apache.hc.core5.http.HttpRequest req, HttpCacheEntry parentCacheEntry)
-
requestIsGet
static boolean requestIsGet(org.apache.hc.core5.http.HttpRequest req)
-
isAHeadCacheEntry
static boolean isAHeadCacheEntry(HttpCacheEntry parentCacheEntry)
-
isSameHost
static boolean isSameHost(java.net.URI requestURI, java.net.URI targetURI)
-
requestShouldNotBeCached
static boolean requestShouldNotBeCached(org.apache.hc.core5.http.HttpRequest req)
-
notGetOrHeadRequest
static boolean notGetOrHeadRequest(java.lang.String method)
-
getLocationURI
private static java.net.URI getLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response, java.lang.String headerName)
-
getContentLocationURI
static java.net.URI getContentLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response)
-
getLocationURI
static java.net.URI getLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response)
-
responseAndEntryEtagsDiffer
static boolean responseAndEntryEtagsDiffer(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)
-
responseDateOlderThanEntryDate
static boolean responseDateOlderThanEntryDate(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)
-
-