public interface Pipeline
Modifier and Type | Method and Description |
---|---|
void |
addValve(Valve valve)
Add a new Valve to the end of the pipeline.
|
Valve[] |
getValves()
Return the set of all Valves in the pipeline.
|
void |
initialize()
Initializes this instance.
|
void |
invoke(PipelineData pipelineData)
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 initialize() throws Exception
Exception
- if the initialization failsvoid addValve(Valve valve)
Add a new Valve to the end of the pipeline.
valve
- Valve to be added.IllegalStateException
- If the pipeline has not been
initialized.Valve[] getValves()
void invoke(PipelineData pipelineData) throws TurbineException, IOException
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.
pipelineData
- The run-time information, including the servlet
request and response we are processing.TurbineException
- if the invocation failsIOException
- an input/output error occurred.void removeValve(Valve valve)
valve
- Valve to be removed.Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.