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.URI
getContentLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response)
(package private) static java.net.URI
getLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response)
private static java.net.URI
getLocationURI(java.net.URI requestUri, org.apache.hc.core5.http.HttpResponse response, java.lang.String headerName)
(package private) static boolean
isAHeadCacheEntry(HttpCacheEntry parentCacheEntry)
(package private) static boolean
isSameHost(java.net.URI requestURI, java.net.URI targetURI)
(package private) static boolean
notGetOrHeadRequest(java.lang.String method)
(package private) static boolean
requestIsGet(org.apache.hc.core5.http.HttpRequest req)
(package private) static boolean
requestShouldNotBeCached(org.apache.hc.core5.http.HttpRequest req)
(package private) static boolean
responseAndEntryEtagsDiffer(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)
(package private) static boolean
responseDateOlderThanEntryDate(org.apache.hc.core5.http.HttpResponse response, HttpCacheEntry entry)
(package private) static boolean
shouldInvalidateHeadCacheEntry(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)
-
-