|
||||||||||
| 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.NonCachingProcessingPipeline
org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline
public class ProfilingNonCachingProcessingPipeline
Special version of the NonCachingProcessingPipeline that supports capturing the SAX-events that go through it and stores the result in the ProfilerData.
| Field Summary |
|---|
| 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 | |
|---|---|
ProfilingNonCachingProcessingPipeline()
|
|
| 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 |
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)
Setup pipeline components. |
| Methods inherited from class org.apache.cocoon.components.pipeline.AbstractProcessingPipeline |
|---|
checkIfModified, checkPipeline, connectPipeline, getGenerator, getKeyForEventPipeline, getLocation, getValidityForEventPipeline, handleException, informBranchPoint, isInternalError, parameterize, 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 ProfilingNonCachingProcessingPipeline()
| Method Detail |
|---|
public void compose(ComponentManager manager)
throws ComponentException
compose in interface Composablecompose in class AbstractProcessingPipelinemanager -
ComponentExceptionpublic void dispose()
dispose in interface Disposablepublic void recycle()
recycle in interface Recyclablerecycle in class AbstractProcessingPipeline
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 AbstractProcessingPipelinerole - 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 AbstractProcessingPipelinerole - 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 AbstractProcessingPipelinerole - source - param - hintParam - mimeType -
ProcessingException
public void setReader(String role,
String source,
Parameters param,
String mimeType)
throws ProcessingException
setReader in interface ProcessingPipelinesetReader in class AbstractProcessingPipelinerole - source - param - mimeType -
ProcessingException
protected void setupPipeline(Environment environment)
throws ProcessingException
setupPipeline in class AbstractProcessingPipelineenvironment -
ProcessingException
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 AbstractProcessingPipelineProcessingException
protected boolean processReader(Environment environment)
throws ProcessingException
processReader in class AbstractProcessingPipelineProcessingException - if
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 | |||||||||