Package org.apache.cocoon.caching

Examples of org.apache.cocoon.caching.CompositeCacheValidity


        CacheValidity genValidity = generator.generateValidity();
        if (genValidity != null) {
            HashMap map = new HashMap(1);
            map.put("source", this.inputSource.getSystemId());
            ParametersCacheValidity pcv = new ParametersCacheValidity(map);
            return new CompositeCacheValidity(genValidity, pcv);
        }
        return null;
    }
View Full Code Here


     * @return The generated validity object or <code>null</code> if the
     *         component is currently not cacheable.
     */
    public CacheValidity generateValidity() {
        if (this.inputSource.getLastModified() != 0) {
            return new CompositeCacheValidity(
                            new TimeStampCacheValidity(page),
                            new TimeStampCacheValidity(this.inputSource.getLastModified())
                       );
        } else {
            return null;
View Full Code Here

    CacheValidity genValidity = generator.generateValidity();
    if (genValidity != null) {
        HashMap map = new HashMap (1);
        map.put("source", this.inputSource.getSystemId());
        ParametersCacheValidity pcv = new ParametersCacheValidity(map);
        return new CompositeCacheValidity(genValidity, pcv);
    }
    return null;
  }
View Full Code Here

        CacheValidity genValidity = generator.generateValidity();
        if (genValidity != null) {
            HashMap map = new HashMap (1);
            map.put("source", this.inputSource.getSystemId());
            ParametersCacheValidity pcv = new ParametersCacheValidity(map);
            return new CompositeCacheValidity(genValidity, pcv);
        }
        return null;
    }
View Full Code Here

     * @return The generated validity object or <code>null</code> if the
     *         component is currently not cacheable.
     */
    public CacheValidity generateValidity() {
        if (this.inputSource.getLastModified() != 0) {
            return new CompositeCacheValidity(
                            new TimeStampCacheValidity(page),
                            new TimeStampCacheValidity(this.inputSource.getLastModified())
                       );
        } else {
            return null;
View Full Code Here

TOP

Related Classes of org.apache.cocoon.caching.CompositeCacheValidity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.