Class CacheableRequestPolicy


  • class CacheableRequestPolicy
    extends java.lang.Object
    Determines if an HttpRequest is allowed to be served from the cache.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger LOG  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isServableFromCache​(org.apache.hc.core5.http.HttpRequest request)
      Determines if an HttpRequest can be served from the cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final org.slf4j.Logger LOG
    • Constructor Detail

      • CacheableRequestPolicy

        CacheableRequestPolicy()
    • Method Detail

      • isServableFromCache

        public boolean isServableFromCache​(org.apache.hc.core5.http.HttpRequest request)
        Determines if an HttpRequest can be served from the cache.
        Parameters:
        request - an HttpRequest
        Returns:
        boolean Is it possible to serve this request from cache