|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline
org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline
org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline
public class ProfilingCachingProcessingPipeline
| Field Summary |
|---|
| Fields inherited from class org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline |
|---|
cacheCompleteResponse, cachedResponse, completeResponseIsCached, firstNotCacheableTransformerIndex, firstProcessedTransformerIndex, fromCacheKey, generatorIsCacheableProcessingComponent, generatorRole, lockTimeout, PIPELOCK_PREFIX, readerRole, serializerIsCacheableProcessingComponent, serializerRole, toCacheKey, toCacheSourceValidities, transformerIsCacheableProcessingComponent, transformerRoles, transientStore |
| 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, generatorSelector, generatorSource, lastConsumer, manager, newManager, outputBufferSize, parameters, reader, readerMimeType, readerParam, readerSelector, readerSource, serializer, serializerMimeType, serializerParam, serializerSelector, serializerSource, sitemapReaderMimeType, sitemapSerializerMimeType, transformerParams, transformers, transformerSelectors, transformerSources |
| Fields inherited from interface org.apache.cocoon.components.pipeline.ProcessingPipeline |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ProfilingCachingProcessingPipeline()
|
|
| Method Summary | |
|---|---|
void |
addTransformer(String role,
String source,
Parameters param,
Parameters hintParam)
Add a transformer at the end of the pipeline. |
void |
compose(ComponentManager manager)
Composable |
protected void |
connect(Environment environment,
XMLProducer producer,
XMLConsumer consumer)
Connect the next component |
void |
dispose()
Disposable |
boolean |
process(Environment environment)
Process the given Environment, producing the output. |
protected boolean |
processReader(Environment environment)
Process the pipeline using a reader. |
protected boolean |
processXMLPipeline(Environment environment)
Process the SAX event pipeline FIXME: VG: Why override processXMLPipeline, not process(env, consumer)? |
void |
recycle()
Recyclable |
void |
setGenerator(String role,
String source,
Parameters param,
Parameters hintParam)
Set the generator that will be used as the initial step in the pipeline. |
void |
setReader(String role,
String source,
Parameters param,
String mimeType)
Set the reader for this pipeline |
void |
setSerializer(String role,
String source,
Parameters param,
Parameters hintParam,
String mimeType)
Set the serializer for this pipeline |
protected void |
setupPipeline(Environment environment)
Timed version of AbstractProcessingPipeline.setupPipeline(org.apache.cocoon.environment.Environment)
and AbstractCachingProcessingPipeline.setupPipeline(org.apache.cocoon.environment.Environment). |
| Methods inherited from class org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline |
|---|
cacheResults, connectCachingPipeline, newComponentCacheKey |
| Methods inherited from class org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline |
|---|
connectPipeline, generateCachingKey, generateLock, getKeyForEventPipeline, getValidityForEventPipeline, parameterize, releaseLock, setupValidities, validatePipeline, waitForLock |
| Methods inherited from class org.apache.cocoon.components.pipeline.AbstractProcessingPipeline |
|---|
checkIfModified, checkPipeline, getGenerator, getLocation, handleException, informBranchPoint, isInternalError, prepareInternal, prepareInternalErrorHandler, preparePipeline, process, processErrorHandler, recompose, release, setErrorHandler, setMimeTypeForReader, setMimeTypeForSerializer, setup, 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 |
|---|
public ProfilingCachingProcessingPipeline()
| Method Detail |
|---|
public void compose(ComponentManager manager)
throws ComponentException
compose in interface Composablecompose in class AbstractProcessingPipelinemanager -
ComponentExceptionpublic void dispose()
dispose in interface Disposabledispose in class BaseCachingProcessingPipelinepublic void recycle()
recycle in interface Recyclablerecycle in class AbstractCachingProcessingPipeline
public void setGenerator(String role,
String source,
Parameters param,
Parameters hintParam)
throws ProcessingException
Generator is fetched
from the latest ComponentManager given by compose()
or recompose().
setGenerator in interface ProcessingPipelinesetGenerator in class AbstractCachingProcessingPipelinerole - the generator role in the component manager.source - the source where to produce XML from, or null if no
source is given.param - the parameters for the generator.hintParam -
ProcessingException - if the generator couldn't be obtained.
public void addTransformer(String role,
String source,
Parameters param,
Parameters hintParam)
throws ProcessingException
Transformer is fetched
from the latest ComponentManager given by compose()
or recompose().
addTransformer in interface ProcessingPipelineaddTransformer in class AbstractCachingProcessingPipelinerole - the transformer role in the component manager.source - the source used to setup the transformer (e.g. XSL file), or
null if no source is given.param - the parameters for the transfomer.hintParam -
ProcessingException - if the generator couldn't be obtained.
public void setSerializer(String role,
String source,
Parameters param,
Parameters hintParam,
String mimeType)
throws ProcessingException
setSerializer in interface ProcessingPipelinesetSerializer in class AbstractCachingProcessingPipelinerole - source - param - hintParam - mimeType -
ProcessingException
public void setReader(String role,
String source,
Parameters param,
String mimeType)
throws ProcessingException
setReader in interface ProcessingPipelinesetReader in class AbstractCachingProcessingPipelinerole - source - param - mimeType -
ProcessingException
protected void setupPipeline(Environment environment)
throws ProcessingException
AbstractProcessingPipeline.setupPipeline(org.apache.cocoon.environment.Environment)
and AbstractCachingProcessingPipeline.setupPipeline(org.apache.cocoon.environment.Environment).
setupPipeline in class AbstractCachingProcessingPipelineProcessingException
public boolean process(Environment environment)
throws ProcessingException
Environment, producing the output.
process in interface ProcessingPipelineprocess in class AbstractProcessingPipelineenvironment -
ProcessingException
protected boolean processXMLPipeline(Environment environment)
throws ProcessingException
processXMLPipeline in class AbstractCachingProcessingPipelineProcessingException
protected boolean processReader(Environment environment)
throws ProcessingException
processReader in class AbstractCachingProcessingPipelineProcessingException - if an error occurs
protected void connect(Environment environment,
XMLProducer producer,
XMLConsumer consumer)
throws ProcessingException
connect in class AbstractProcessingPipelineenvironment - producer - consumer -
ProcessingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||