org.apache.cocoon.components.pipeline.impl
Class CachingProcessingPipeline

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.pipeline.AbstractProcessingPipeline
          extended byorg.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
              extended byorg.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
                  extended byorg.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline
All Implemented Interfaces:
Disposable, LogEnabled, Parameterizable, Poolable, ProcessingPipeline, Recyclable, Serviceable
Direct Known Subclasses:
ProfilingCachingProcessingPipeline

public class CachingProcessingPipeline
extends AbstractCachingProcessingPipeline

The CachingProcessingPipeline

Since:
2.1
Version:
$Id: CachingProcessingPipeline.java 157160 2005-03-11 21:18:58Z vgritsenko $
Author:
Carsten Ziegeler

Field Summary
 
Fields inherited from class org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
cacheCompleteResponse, cachedResponse, completeResponseIsCached, configuredDoSmartCaching, doSmartCaching, firstNotCacheableTransformerIndex, firstProcessedTransformerIndex, fromCacheKey, generatorRole, readerRole, serializerRole, toCacheKey, toCacheSourceValidities, transformerRoles
 
Fields inherited from class org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
cache, xmlDeserializer, xmlSerializer
 
Fields inherited from class org.apache.cocoon.components.pipeline.AbstractProcessingPipeline
configuration, configuredExpires, configuredOutputBufferSize, expires, generator, generatorParam, generatorSource, lastConsumer, manager, newManager, outputBufferSize, parameters, processor, reader, readerMimeType, readerParam, readerSource, serializer, serializerMimeType, serializerParam, serializerSource, transformerParams, transformers, transformerSources
 
Fields inherited from interface org.apache.cocoon.components.pipeline.ProcessingPipeline
ROLE
 
Constructor Summary
CachingProcessingPipeline()
           
 
Method Summary
protected  void cacheResults(Environment environment, OutputStream os)
          Cache longest cacheable key
protected  void connectCachingPipeline(Environment environment)
          Connect the pipeline.
protected  ComponentCacheKey newComponentCacheKey(int type, String role, Serializable key)
          Create a new cache key
 
Methods inherited from class org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
addTransformer, connectPipeline, generateCachingKey, getKeyForEventPipeline, getValidityForEventPipeline, parameterize, processReader, processXMLPipeline, recycle, setGenerator, setReader, setSerializer, setup, setupPipeline, setupValidities, validatePipeline
 
Methods inherited from class org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
dispose
 
Methods inherited from class org.apache.cocoon.components.pipeline.AbstractProcessingPipeline
checkIfModified, checkPipeline, connect, getGenerator, getLocation, handleException, informBranchPoint, isInternalError, prepareInternal, prepareInternalErrorHandler, preparePipeline, process, process, processErrorHandler, service, setErrorHandler, setMimeTypeForReader, setMimeTypeForSerializer, setProcessorManager, setupReader
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingProcessingPipeline

public CachingProcessingPipeline()
Method Detail

cacheResults

protected void cacheResults(Environment environment,
                            OutputStream os)
                     throws Exception
Cache longest cacheable key

Specified by:
cacheResults in class AbstractCachingProcessingPipeline
Throws:
Exception

newComponentCacheKey

protected ComponentCacheKey newComponentCacheKey(int type,
                                                 String role,
                                                 Serializable key)
Create a new cache key

Specified by:
newComponentCacheKey in class AbstractCachingProcessingPipeline

connectCachingPipeline

protected void connectCachingPipeline(Environment environment)
                               throws ProcessingException
Connect the pipeline.

Specified by:
connectCachingPipeline in class AbstractCachingProcessingPipeline
Throws:
ProcessingException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.