Class HttpCacheContext

java.lang.Object
org.apache.hc.core5.http.protocol.HttpCoreContext
org.apache.hc.client5.http.protocol.HttpClientContext
org.apache.hc.client5.http.cache.HttpCacheContext
All Implemented Interfaces:
org.apache.hc.core5.http.protocol.HttpContext

public class HttpCacheContext extends HttpClientContext
Adaptor class that provides convenience type safe setters and getters for caching HttpContext attributes.
Since:
4.3
  • Field Details

    • CACHE_RESPONSE_STATUS

      public static final String CACHE_RESPONSE_STATUS
      This is the name under which the CacheResponseStatus of a request (for example, whether it resulted in a cache hit) will be recorded if an HttpContext is provided during execution.
      See Also:
  • Constructor Details

    • HttpCacheContext

      public HttpCacheContext(org.apache.hc.core5.http.protocol.HttpContext context)
    • HttpCacheContext

      public HttpCacheContext()
  • Method Details