|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.pipeline.AbstractPipeline
public abstract class AbstractPipeline
Basic pipeline implementation that collects the PipelineComponent
s and connects them with each other.
Constructor Summary | |
---|---|
AbstractPipeline()
|
Method Summary | |
---|---|
void |
addComponent(PipelineComponent 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<PipelineComponent> |
getComponents()
|
String |
getContentType()
Get the mime-type http://tools.ietf.org/html/rfc2046 of the content produced by the pipeline. |
protected Finisher |
getFinisher()
|
long |
getLastModified()
Get the time of the last modification. |
protected void |
invokeStarter()
|
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(PipelineComponent pipelineComponent)
PipelineComponent
to the pipeline. The order of when the components are passed is significant.
addComponent
in interface Pipeline
pipelineComponent
- The PipelineComponent
.Pipeline.addComponent(org.apache.cocoon.pipeline.component.PipelineComponent)
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
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
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 void execute() throws Exception
Pipeline.setup(OutputStream, Map)
, this method can be invoked in order to
produce the result.
execute
in interface Pipeline
Exception
- Any problem that might occur while processing the pipeline.Pipeline.execute()
public String getContentType()
http://tools.ietf.org/html/rfc2046
of the content produced by the pipeline.
getContentType
in interface Pipeline
Pipeline.getContentType()
protected LinkedList<PipelineComponent> getComponents()
protected Finisher getFinisher()
protected void invokeStarter()
protected void setupComponents(OutputStream outputStream, Map<String,Object> parameters)
public long getLastModified()
Pipeline
getLastModified
in interface Pipeline
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |