public interface Pipeline
Modifier and Type | Method and Description |
---|---|
void |
addValve(Valve valve)
Add a new Valve to the end of the pipeline.
|
Valve[] |
getCleanupValves()
Return the set of all cleanup Valves in the pipeline.
|
String |
getName()
Get the name of the pipeine
|
Valve[] |
getValves()
Return the set of all Valves in the pipeline.
|
void |
initialize() |
void |
invoke(RequestContext context)
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 PipelineException
PipelineException
void 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()
Return the set of all Valves in the pipeline. If there are no such Valves, a zero-length array is returned.
Valve[] getCleanupValves()
Return the set of all cleanup Valves in the pipeline. If there are no such Valves, a zero-length array is returned.
void invoke(RequestContext context) throws PipelineException
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.
context
- The run-time information, including the servlet
request and response we are processing.IOException
- an input/output error occurred.PipelineException
void removeValve(Valve valve)
Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing.
valve
- Valve to be removed.String getName()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.