org.apache.cocoon.components.source.impl
Class ExpiresCachingSourceValidityStrategy

java.lang.Object
  extended byorg.apache.cocoon.components.source.impl.ExpiresCachingSourceValidityStrategy
All Implemented Interfaces:
CachingSourceValidityStrategy

public class ExpiresCachingSourceValidityStrategy
extends Object
implements CachingSourceValidityStrategy

We need to store both the cache expiration and the original source validity the former is to determine whether to recheck the latter (see checkValidity)

Version:
$Id: ExpiresCachingSourceValidityStrategy.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
ExpiresCachingSourceValidityStrategy()
           
 
Method Summary
 boolean checkValidity(CachedSourceResponse response, Source source, long expires)
           
 SourceValidity[] getCacheValidities(CachingSource cachingSource, Source source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpiresCachingSourceValidityStrategy

public ExpiresCachingSourceValidityStrategy()
Method Detail

getCacheValidities

public SourceValidity[] getCacheValidities(CachingSource cachingSource,
                                           Source source)
Specified by:
getCacheValidities in interface CachingSourceValidityStrategy

checkValidity

public boolean checkValidity(CachedSourceResponse response,
                             Source source,
                             long expires)
Specified by:
checkValidity in interface CachingSourceValidityStrategy


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.