|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.pipeline.AbstractPipeline<T>
public abstract class AbstractPipeline<T extends PipelineComponent>
Basic pipeline implementation that collects the PipelineComponent
s
and connects them with each other.
Constructor Summary | |
---|---|
AbstractPipeline()
|
Method Summary | |
---|---|
void |
addComponent(T pipelineComponent)
Add a PipelineComponent to the pipeline. |
void |
execute()
After the pipeline has been setup ( Pipeline.setup(OutputStream, Map) ,
this method can be invoked in order to produce the result. |
protected LinkedList<T> |
getComponents()
|
String |
getContentType()
Get the mime-type of the content produced by the pipeline. |
protected Finisher |
getFinisher()
|
long |
getLastModified()
Get the time of the last modification. |
protected void |
invokeStarter()
|
void |
setConfiguration(Map<String,? extends Object> parameters)
Pass pipeline specific configuration parameters to the pipeline component in a generic way. |
void |
setup(OutputStream outputStream)
After the pipeline has been prepared ( Pipeline.addComponent(PipelineComponent) ,
this method can be invoked in order to setup and initialize the pipeline
and its components. |
void |
setup(OutputStream outputStream,
Map<String,Object> parameters)
The same as Pipeline.setup(OutputStream) but also allows passing
parameters to the pipeline components. |
protected void |
setupComponents(OutputStream outputStream,
Map<String,Object> parameters)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractPipeline()
Method Detail |
---|
public void addComponent(T pipelineComponent)
PipelineComponent
to the pipeline. The order of when the
components are passed is significant.
addComponent
in interface Pipeline<T extends PipelineComponent>
pipelineComponent
- The PipelineComponent
.Pipeline.addComponent(org.apache.cocoon.pipeline.component.PipelineComponent)
public void execute() throws Exception
Pipeline.setup(OutputStream, Map)
,
this method can be invoked in order to produce the result.
execute
in interface Pipeline<T extends PipelineComponent>
Exception
- Any problem that might occur while processing the
pipeline.Pipeline.execute()
public String getContentType()
getContentType
in interface Pipeline<T extends PipelineComponent>
Pipeline.getContentType()
public long getLastModified()
Pipeline
getLastModified
in interface Pipeline<T extends PipelineComponent>
public void setConfiguration(Map<String,? extends Object> parameters)
setConfiguration
in interface Pipeline<T extends PipelineComponent>
Pipeline.setConfiguration(java.util.Map)
public void setup(OutputStream outputStream)
Pipeline.addComponent(PipelineComponent)
,
this method can be invoked in order to setup and initialize the pipeline
and its components.
setup
in interface Pipeline<T extends PipelineComponent>
outputStream
- An OutputStream
where the pipeline execution
result is written.Pipeline.setup(java.io.OutputStream,
java.util.Map)
public void setup(OutputStream outputStream, Map<String,Object> parameters)
Pipeline.setup(OutputStream)
but also allows passing
parameters to the pipeline components.
setup
in interface Pipeline<T extends PipelineComponent>
outputStream
- An OutputStream
where the pipeline execution
result is written.parameters
- A Map
of parameters that are available to all
PipelineComponent
s.Pipeline.setup(java.io.OutputStream,
java.util.Map)
public String toString()
toString
in class Object
protected LinkedList<T> getComponents()
protected Finisher getFinisher()
protected void invokeStarter()
protected void setupComponents(OutputStream outputStream, Map<String,Object> parameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |