|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.pipeline.JetspeedPipeline
public class JetspeedPipeline
Flexible implementation of a Pipeline.
| Field Summary | |
|---|---|
protected java.lang.String |
name
Name of this pipeline. |
protected Valve[] |
valves
The set of Valves associated with this Pipeline. |
| Constructor Summary | |
|---|---|
JetspeedPipeline(java.lang.String name,
java.util.List valveList)
Constructor that provides the descriptor for building the pipeline |
|
| Method Summary | |
|---|---|
void |
addValve(Valve valve)
Add a new Valve to the end of the pipeline. |
java.lang.String |
getName()
Get the name of this pipeline. |
Valve[] |
getValves()
Return the set of all Valves in the pipeline. |
void |
initialize()
|
void |
invoke(RequestContext request)
Cause the specified request and response to be processed by the sequence of Valves associated with this pipeline, until one of these Valves decides to end the processing. |
void |
removeValve(Valve valve)
Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing. |
void |
setName(java.lang.String name)
Set the name of this pipeline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected Valve[] valves
| Constructor Detail |
|---|
public JetspeedPipeline(java.lang.String name,
java.util.List valveList)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void initialize()
throws PipelineException
initialize in interface PipelinePipelineExceptionpublic void setName(java.lang.String name)
name - Name of this pipeline.public java.lang.String getName()
getName in interface Pipelinepublic void addValve(Valve valve)
PipelineAdd a new Valve to the end of the pipeline.
addValve in interface Pipelinevalve - Valve to be added.public Valve[] getValves()
PipelineReturn the set of all Valves in the pipeline. If there are no such Valves, a zero-length array is returned.
getValves in interface Pipelinepublic void removeValve(Valve valve)
PipelineRemove the specified Valve from the pipeline, if it is found; otherwise, do nothing.
removeValve in interface Pipelinevalve - Valve to be removed.
public void invoke(RequestContext request)
throws PipelineException
PipelineCause the specified request and response to be processed by the sequence of Valves associated with this pipeline, until one of these Valves decides to end the processing.
The implementation must ensure that multiple simultaneous requests (on different threads) can be processed through the same Pipeline without interfering with each other's control flow.
invoke in interface PipelinePipelineException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||