Class CacheableRequestPolicy


  • @Contract(threading=IMMUTABLE)
    class CacheableRequestPolicy
    extends java.lang.Object
    Determines if an HttpRequest is allowed to be served from the cache.
    Since:
    4.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.commons.logging.Log log  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isServableFromCache​(org.apache.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 final org.apache.commons.logging.Log log
    • Constructor Detail

      • CacheableRequestPolicy

        CacheableRequestPolicy()
    • Method Detail

      • isServableFromCache

        public boolean isServableFromCache​(org.apache.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