| org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline
ProfilingNonCachingProcessingPipeline | public class ProfilingNonCachingProcessingPipeline extends NonCachingProcessingPipeline implements Disposable(Code) | | Special version of the NonCachingProcessingPipeline that supports capturing
the SAX-events that go through it and stores the result in the
ProfilerData.
author: Vadim Gritsenko author: Stephan Michels author: Bruno Dumon version: $Id: ProfilingNonCachingProcessingPipeline.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | addTransformer(String role, String source, Parameters param, Parameters hintParam) Add a transformer at the end of the pipeline.
The transformer role is given : the actual Transformer is fetched
from the latest ComponentManager given by compose()
or recompose() .
Parameters: role - the transformer role in the component manager. Parameters: source - the source used to setup the transformer (e.g. | public void | compose(ComponentManager manager) | protected void | connect(Environment environment, XMLProducer producer, XMLConsumer consumer) | public void | dispose() | public 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) | public void | recycle() | public void | setGenerator(String role, String source, Parameters param, Parameters hintParam) Set the generator that will be used as the initial step in the pipeline. | public void | setReader(String role, String source, Parameters param, String mimeType) | public void | setSerializer(String role, String source, Parameters param, Parameters hintParam, String mimeType) | protected void | setupPipeline(Environment environment) Setup pipeline components. |
addTransformer | public void addTransformer(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code) | | Add a transformer at the end of the pipeline.
The transformer role is given : the actual Transformer is fetched
from the latest ComponentManager given by compose()
or recompose() .
Parameters: role - the transformer role in the component manager. Parameters: source - the source used to setup the transformer (e.g. XSL file), ornull if no source is given. Parameters: param - the parameters for the transfomer. Parameters: hintParam - throws: ProcessingException - if the generator couldn't be obtained. |
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | Composable
Parameters: manager - |
dispose | public void dispose()(Code) | | Disposable
|
process | public boolean process(Environment environment) throws ProcessingException(Code) | | Process the given Environment , producing the output.
Parameters: environment - true on success |
recycle | public void recycle()(Code) | | Recyclable
|
setGenerator | public void setGenerator(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code) | | Set the generator that will be used as the initial step in the pipeline.
The generator role is given : the actual Generator is fetched
from the latest ComponentManager given by compose()
or recompose() .
Parameters: role - the generator role in the component manager. Parameters: source - the source where to produce XML from, or null if nosource is given. Parameters: param - the parameters for the generator. Parameters: hintParam - throws: ProcessingException - if the generator couldn't be obtained. |
setReader | public void setReader(String role, String source, Parameters param, String mimeType) throws ProcessingException(Code) | | Set the reader for this pipeline
Parameters: role - Parameters: source - Parameters: param - Parameters: mimeType - |
setSerializer | public void setSerializer(String role, String source, Parameters param, Parameters hintParam, String mimeType) throws ProcessingException(Code) | | Set the serializer for this pipeline
Parameters: role - Parameters: source - Parameters: param - Parameters: hintParam - Parameters: mimeType - |
|
|