upayavira 2004/05/06 12:34:13
Modified: src/java/org/apache/cocoon/components/pipeline/impl CachingProcessingPipeline.java Log: Fixing erroneous commit Revision Changes Path 1.6 +0 -16 cocoon-2.1/src/java/org/apache/cocoon/components/pipeline/impl/CachingProcessingPipeline.java Index: CachingProcessingPipeline.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/pipeline/impl/CachingProcessingPipeline.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- CachingProcessingPipeline.java 6 May 2004 19:27:54 -0000 1.5 +++ CachingProcessingPipeline.java 6 May 2004 19:34:13 -0000 1.6 @@ -16,9 +16,7 @@ package org.apache.cocoon.components.pipeline.impl; import org.apache.avalon.framework.component.ComponentException; -import org.apache.cocoon.Constants; import org.apache.cocoon.ProcessingException; -import org.apache.cocoon.caching.CacheValidityToSourceValidity; import org.apache.cocoon.caching.CachedResponse; import org.apache.cocoon.caching.CachingOutputStream; import org.apache.cocoon.caching.ComponentCacheKey; @@ -29,14 +27,10 @@ import org.apache.cocoon.environment.ObjectModelHelper; import org.apache.cocoon.xml.XMLConsumer; import org.apache.cocoon.xml.XMLProducer; -import org.apache.excalibur.source.SourceValidity; import java.io.OutputStream; import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; import java.util.Iterator; -import java.util.List; /** * The CachingProcessingPipeline @@ -61,16 +55,6 @@ expiresObj); this.cache.store(this.toCacheKey, response); -/* List links = (List) environment.getObjectModel().get(Constants.LINK_COLLECTION_OBJECT); - if (links!=null) { - SourceValidity[] linkValidities = new SourceValidity[this.toCacheSourceValidities.length+1]; - System.arraycopy(this.toCacheSourceValidities, 0, linkValidities, 0, this.toCacheSourceValidities.length); - for (int i=0; i<this.toCacheSourceValidities.length;i++) { - linkValidities[i]=this.toCacheSourceValidities[i]; - } - linkValidities[this.toCacheSourceValidities.length]=CacheValidityToSourceValidity.createValidity(null); - this.cache.store(linkValidities, new CachedResponse(links.serialize())); - }*/ } else { CachedResponse response = new CachedResponse(this.toCacheSourceValidities, (byte[])this.xmlSerializer.getSAXFragment(),