Class CacheInvalidatorBase

java.lang.Object
org.apache.hc.client5.http.impl.cache.CacheInvalidatorBase
Direct Known Subclasses:
DefaultAsyncCacheInvalidator, DefaultCacheInvalidator

class CacheInvalidatorBase extends Object
  • Constructor Details

    • CacheInvalidatorBase

      CacheInvalidatorBase()
  • Method Details

    • 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(URI requestURI, URI targetURI)
    • requestShouldNotBeCached

      static boolean requestShouldNotBeCached(org.apache.hc.core5.http.HttpRequest req)
    • notGetOrHeadRequest

      static boolean notGetOrHeadRequest(String method)
    • getLocationURI

      private static URI getLocationURI(URI requestUri, org.apache.hc.core5.http.HttpResponse response, String headerName)
    • getContentLocationURI

      static URI getContentLocationURI(URI requestUri, org.apache.hc.core5.http.HttpResponse response)
    • getLocationURI

      static URI getLocationURI(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)