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
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdd 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.voidInitializes this instance.voidinvoke(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.voidinvokeNext(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 thisValveContextinstance.voidremoveValve(Valve valve) Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing.voidSet the name of this pipeline.protected voidSet new valves during deserialization
-
Felddetails
-
CLASSIC_PIPELINE
The "Turbine Classic" pipeline.- Siehe auch:
-
-
Konstruktordetails
-
TurbinePipeline
public TurbinePipeline()
-
-
Methodendetails
-
initialize
Beschreibung aus Schnittstelle kopiert:PipelineInitializes this instance. Called once by the Turbine servlet.- Angegeben von:
initializein 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:PipelineAdd a new Valve to the end of the pipeline.
-
getValves
Beschreibung aus Schnittstelle kopiert:PipelineReturn 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:PipelineRemove the specified Valve from the pipeline, if it is found; otherwise, do nothing.- Angegeben von:
removeValvein SchnittstellePipeline- Parameter:
valve- Valve to be removed.- Siehe auch:
-
invoke
Beschreibung aus Schnittstelle kopiert: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.
- Angegeben von:
invokein 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:ValveContextCause 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 thisValveContextinstance. 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:
invokeNextin 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:
-