Class CacheableRequestPolicy
- java.lang.Object
-
- org.apache.hc.client5.http.impl.cache.CacheableRequestPolicy
-
class CacheableRequestPolicy extends java.lang.ObjectDetermines if an HttpRequest is allowed to be served from the cache.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description CacheableRequestPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeServedFromCache(RequestCacheControl cacheControl, org.apache.hc.core5.http.HttpRequest request)Determines if an HttpRequest can be served from the cache.
-
-
-
Method Detail
-
canBeServedFromCache
public boolean canBeServedFromCache(RequestCacheControl cacheControl, 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
-
-