Klasse TurbinePipeline
- Alle implementierten Schnittstellen:
Pipeline
,ValveContext
Pipeline
.
Originally based on code from Catalina and ideas from Apache httpd.- Autor:
- Daniel Rall, Jason van Zyl, Peter Courcoux
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Add a new Valve to the end of the pipeline.getName()
Get the name of this pipeline.Valve[]
Return the set of all Valves in the pipeline.void
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
invokeNext
(PipelineData pipelineData) Cause theinvoke()
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 thisValveContext
instance.void
removeValve
(Valve valve) Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing.void
Set the name of this pipeline.protected void
Set new valves during deserialization
-
Felddetails
-
CLASSIC_PIPELINE
The "Turbine Classic" pipeline.- Siehe auch:
-
-
Konstruktordetails
-
TurbinePipeline
public TurbinePipeline()
-
-
Methodendetails
-
initialize
Beschreibung aus Schnittstelle kopiert:Pipeline
Initializes this instance. Called once by the Turbine servlet.- Angegeben von:
initialize
in SchnittstellePipeline
- Löst aus:
Exception
- if the initialization fails- Siehe auch:
-
setName
Set the name of this pipeline.- Parameter:
name
- Name of this pipeline.
-
getName
Get the name of this pipeline.- Gibt zurück:
- String Name of this pipeline.
-
addValve
Beschreibung aus Schnittstelle kopiert:Pipeline
Add a new Valve to the end of the pipeline.
-
getValves
Beschreibung aus Schnittstelle kopiert:Pipeline
Return the set of all Valves in the pipeline. If there are no such Valves, a zero-length array is returned. -
setValves
Set new valves during deserialization- Parameter:
valves
- the valves to set
-
removeValve
Beschreibung aus Schnittstelle kopiert:Pipeline
Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing.- Angegeben von:
removeValve
in SchnittstellePipeline
- Parameter:
valve
- Valve to be removed.- Siehe auch:
-
invoke
Beschreibung aus Schnittstelle kopiert: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.
- Angegeben von:
invoke
in SchnittstellePipeline
- Parameter:
pipelineData
- The run-time information, including the servlet request and response we are processing.- Löst aus:
TurbineException
- if the invocation failsIOException
- an input/output error occurred.- Siehe auch:
-
invokeNext
Beschreibung aus Schnittstelle kopiert: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 thisValveContext
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.
- Angegeben von:
invokeNext
in SchnittstelleValveContext
- Parameter:
pipelineData
- The run-time information, including the servlet request and response we are processing.- Löst aus:
TurbineException
- Thrown by a subsequent Valve.TurbineException
- No further Valves configured in the Pipeline currently being processed.IOException
- Thrown by a subsequent Valve.- Siehe auch:
-