|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.pipeline.JetspeedPipeline
Flexible implementation of a Pipeline
.
Suggested order of valves:
Field Summary | |
private org.apache.commons.logging.Log |
log
Logger |
protected String |
name
Name of this pipeline. |
protected ThreadLocal |
state
The per-thread execution state for processing through this pipeline. |
protected Valve[] |
valves
The set of Valves associated with this Pipeline. |
Constructor Summary | |
JetspeedPipeline(String name,
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. |
String |
getName()
Get the name of this pipeline. |
Valve[] |
getValves()
Return the set of all Valves in the pipeline. |
void |
initialize()
|
void |
invoke(org.apache.jetspeed.request.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 |
invokeNext(org.apache.jetspeed.request.RequestContext request)
Cause the invoke() method of the next Valve
that is part of the Pipeline currently being processed (if any)
to be executed, passing on the specified request and response
objects plus this ValveContext instance. |
void |
removeValve(Valve valve)
Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing. |
void |
setName(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 |
private org.apache.commons.logging.Log log
protected String name
protected Valve[] valves
protected ThreadLocal state
values
array, or
a subscript equal to values.length
if the basic
Valve is currently being processed.
Constructor Detail |
public JetspeedPipeline(String name, List valveList) throws Exception
Method Detail |
public void initialize() throws PipelineException
initialize
in interface Pipeline
PipelineException
org.apache.plexus.summit.Pipeline#init()
public void setName(String name)
name
- Name of this pipeline.public String getName()
public void addValve(Valve valve)
Pipeline
Add a new Valve to the end of the pipeline.
addValve
in interface Pipeline
valve
- Valve to be added.org.apache.plexus.summit.Pipeline#addValve(Valve)
public Valve[] getValves()
Pipeline
Return the set of all Valves in the pipeline. If there are no such Valves, a zero-length array is returned.
getValves
in interface Pipeline
org.apache.plexus.summit.Pipeline#getValves()
public void removeValve(Valve valve)
Pipeline
Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing.
removeValve
in interface Pipeline
valve
- Valve to be removed.org.apache.plexus.summit.Pipeline#removeValve(Valve)
public void invoke(org.apache.jetspeed.request.RequestContext request) throws PipelineException
Pipeline
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.
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 Pipeline
PipelineException
org.apache.plexus.summit.Pipeline#invoke(RequestContext)
public void invokeNext(org.apache.jetspeed.request.RequestContext request) throws PipelineException
ValveContext
Cause the invoke()
method of the next Valve
that is part of the Pipeline currently being processed (if any)
to be executed, passing on the specified request and response
objects plus this ValveContext
instance.
Exceptions thrown by a subsequently executed Valve will be
passed on to our caller.
If there are no more Valves to be executed, execution of this method will result in a no op.
invokeNext
in interface ValveContext
PipelineException
org.apache.plexus.summit.ValveContext#invokeNext(RequestContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |