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

java.lang.Object
  extended by org.apache.http.impl.client.cache.CacheInvalidator

@ThreadSafe
public class CacheInvalidator
extends Object

Given a particular HttpRequest, flush any cache entries that this request would invalidate.

Since:
4.1

Constructor Summary
CacheInvalidator(URIExtractor uriExtractor, HttpCache<CacheEntry> cache)
           
 
Method Summary
 void flushInvalidatedCacheEntries(HttpHost host, HttpRequest req)
          Remove cache entries from the cache that are no longer fresh or have been invalidated in some way.
protected  boolean requestShouldNotBeCached(HttpRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheInvalidator

public CacheInvalidator(URIExtractor uriExtractor,
                        HttpCache<CacheEntry> cache)
Parameters:
uriExtractor -
cache -
Method Detail

flushInvalidatedCacheEntries

public void flushInvalidatedCacheEntries(HttpHost host,
                                         HttpRequest req)
Remove cache entries from the cache that are no longer fresh or have been invalidated in some way.

Parameters:
host - The backend host we are talking to
req - The HttpRequest to that host

requestShouldNotBeCached

protected boolean requestShouldNotBeCached(HttpRequest req)


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.