Class VelocityAction

    • Method Detail

      • doPerform

        public abstract void doPerform​(PipelineData pipelineData,
                                       org.apache.velocity.context.Context context)
                                throws Exception
        You SHOULD override this method and implement it in your action.
        Parameters:
        pipelineData - Turbine information.
        context - Context for web pages.
        Throws:
        Exception - a generic exception.
      • perform

        public void perform​(PipelineData pipelineData)
                     throws Exception
        Sets up the context and then calls super.perform(); thus, subclasses don't have to worry about getting a context themselves! If a subclass throws an exception then depending on whether action.event.bubbleexception is true, then it bubbles it farther up, or traps it there.
        Parameters:
        pipelineData - Turbine information.
        Throws:
        Exception - a generic exception.
      • setTemplate

        public void setTemplate​(PipelineData pipelineData,
                                String template)
        This method is used when you want to short circuit an Action and change the template that will be executed next.
        Parameters:
        pipelineData - Turbine information.
        template - The template that will be executed next.