Class CacheableRequestPolicy
java.lang.Object
org.apache.hc.client5.http.impl.cache.CacheableRequestPolicy
Determines if an HttpRequest is allowed to be served from the cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isServableFromCache
(org.apache.hc.core5.http.HttpRequest request) Determines if an HttpRequest can be served from the cache.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG
-
-
Constructor Details
-
CacheableRequestPolicy
CacheableRequestPolicy()
-
-
Method Details
-
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
-