org.apache.http.impl.client.cache
Class CacheableRequestPolicy

java.lang.Object
  extended by 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

Constructor Summary
CacheableRequestPolicy()
           
 
Method Summary
 boolean isServableFromCache(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
 

Constructor Detail

CacheableRequestPolicy

public CacheableRequestPolicy()
Method Detail

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.