org.apache.http.impl.client.cache
Class CacheableRequestPolicy
java.lang.Object
org.apache.http.impl.client.cache.CacheableRequestPolicy
@Immutable
public class CacheableRequestPolicy
- extends Object
Determines if an HttpRequest is allowed to be served from the cache.
- Since:
- 4.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheableRequestPolicy
public CacheableRequestPolicy()
isServableFromCache
public boolean isServableFromCache(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
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.