Class TurbinePipeline

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String CLASSIC_PIPELINE
      The "Turbine Classic" pipeline.
    • Constructor Summary

      Constructors 
      Constructor Description
      TurbinePipeline()  
    • Method Detail

      • setName

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

        public String getName()
        Get the name of this pipeline.
        Returns:
        String Name of this pipeline.
      • getValves

        public Valve[] getValves()
        Description copied from interface: Pipeline
        Return the set of all Valves in the pipeline. If there are no such Valves, a zero-length array is returned.
        Specified by:
        getValves in interface Pipeline
        Returns:
        An array of valves.
        See Also:
        Pipeline.getValves()
      • setValves

        protected void setValves​(Valve[] valves)
        Set new valves during deserialization
        Parameters:
        valves - the valves to set
      • invoke

        public void invoke​(PipelineData pipelineData)
                    throws TurbineException,
                           IOException
        Description copied from interface: 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.

        Specified by:
        invoke in interface Pipeline
        Parameters:
        pipelineData - The run-time information, including the servlet request and response we are processing.
        Throws:
        TurbineException - if the invocation fails
        IOException - an input/output error occurred.
        See Also:
        Pipeline.invoke(PipelineData)
      • invokeNext

        public void invokeNext​(PipelineData pipelineData)
                        throws TurbineException,
                               IOException
        Description copied from interface: 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.

        Specified by:
        invokeNext in interface ValveContext
        Parameters:
        pipelineData - The run-time information, including the servlet request and response we are processing.
        Throws:
        TurbineException - Thrown by a subsequent Valve.
        IOException - Thrown by a subsequent Valve.
        See Also:
        ValveContext.invokeNext(PipelineData)