org.apache.http.client.cache
Interface HttpCacheUpdateCallback<E>


public interface HttpCacheUpdateCallback<E>


Method Summary
 E getUpdatedEntry(E existing)
          Returns the new cache entry that should replace an existing one.
 

Method Detail

getUpdatedEntry

E getUpdatedEntry(E existing)
                  throws HttpCacheOperationException
Returns the new cache entry that should replace an existing one.

Parameters:
existing - the cache entry current in-place in the cache, possibly null if nonexistent
Returns:
CacheEntry the cache entry that should replace it, again, possible null
Throws:
HttpCacheOperationException - exception containing information about a failure in the cache
Since:
4.1


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