Klasse TurbinePipeline

java.lang.Object
org.apache.turbine.pipeline.TurbinePipeline
Alle implementierten Schnittstellen:
Pipeline, ValveContext

public class TurbinePipeline extends Object implements Pipeline, ValveContext
Flexible implementation of a Pipeline. Originally based on code from Catalina and ideas from Apache httpd.
Autor:
Daniel Rall, Jason van Zyl, Peter Courcoux
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final String
    The "Turbine Classic" pipeline.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    addValve(Valve valve)
    Add a new Valve to the end of the pipeline.
    Get the name of this pipeline.
    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 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
    Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing.
    void
    Set the name of this pipeline.
    protected void
    setValves(Valve[] valves)
    Set new valves during deserialization

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • initialize

      public void initialize() throws Exception
      Beschreibung aus Schnittstelle kopiert: Pipeline
      Initializes this instance. Called once by the Turbine servlet.
      Angegeben von:
      initialize in Schnittstelle Pipeline
      Löst aus:
      Exception - if the initialization fails
      Siehe auch:
    • setName

      public void setName(String name)
      Set the name of this pipeline.
      Parameter:
      name - Name of this pipeline.
    • getName

      public String getName()
      Get the name of this pipeline.
      Gibt zurück:
      String Name of this pipeline.
    • addValve

      public void addValve(Valve valve)
      Beschreibung aus Schnittstelle kopiert: Pipeline

      Add a new Valve to the end of the pipeline.

      Angegeben von:
      addValve in Schnittstelle Pipeline
      Parameter:
      valve - Valve to be added.
      Siehe auch:
    • getValves

      public Valve[] 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.
      Angegeben von:
      getValves in Schnittstelle Pipeline
      Gibt zurück:
      An array of valves.
      Siehe auch:
    • setValves

      protected void setValves(Valve[] valves)
      Set new valves during deserialization
      Parameter:
      valves - the valves to set
    • removeValve

      public void removeValve(Valve valve)
      Beschreibung aus Schnittstelle kopiert: Pipeline
      Remove the specified Valve from the pipeline, if it is found; otherwise, do nothing.
      Angegeben von:
      removeValve in Schnittstelle Pipeline
      Parameter:
      valve - Valve to be removed.
      Siehe auch:
    • invoke

      public void invoke(PipelineData pipelineData) throws TurbineException, IOException
      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 Schnittstelle Pipeline
      Parameter:
      pipelineData - The run-time information, including the servlet request and response we are processing.
      Löst aus:
      TurbineException - if the invocation fails
      IOException - an input/output error occurred.
      Siehe auch:
    • invokeNext

      public void invokeNext(PipelineData pipelineData) throws TurbineException, IOException
      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 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.

      Angegeben von:
      invokeNext in Schnittstelle ValveContext
      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: