org.apache.cocoon.components.source.impl
Class ExpiresCachingSourceValidityStrategy
java.lang.Object
org.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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpiresCachingSourceValidityStrategy
public ExpiresCachingSourceValidityStrategy()
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.