org.apache.turbine.modules.pages

## Class VelocityPage

- java.lang.Object
- - org.apache.turbine.modules.Assembler
  - - org.apache.turbine.modules.Page
    - - org.apache.turbine.modules.pages.DefaultPage
      - - org.apache.turbine.modules.pages.TemplatePage
        - - org.apache.turbine.modules.pages.VelocityPage

-     public class VelocityPage
      extends TemplatePage

  Extends TemplatePage to set the template Context.
  Version:
    $Id: VelocityPage.java 1706239 2015-10-01 13:18:35Z tv $
  Author:
    Dave Bryson, John D. McNally, Henning P. Schmiedehausen, Peter Courcoux

- - ### Field Summary

    - ### Fields inherited from class org.apache.turbine.modules.pages.DefaultPage

      `actionLoader, layoutLoader, log, screenLoader`

    - ### Fields inherited from class org.apache.turbine.modules.Page

      `CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `VelocityPage()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `doBuildBeforeAction(PipelineData pipelineData)` Stuffs the Context into the PipelineData so that it is available to the Action module and the Screen module via getContext().
    `protected void` | `doPostBuild(PipelineData pipelineData)` Allows the VelocityService to perform post-request actions.

    - ### Methods inherited from class org.apache.turbine.modules.pages.TemplatePage

      `doBuildAfterAction`

    - ### Methods inherited from class org.apache.turbine.modules.pages.DefaultPage

      `doBuild`

    - ### Methods inherited from class org.apache.turbine.modules.Page

      `build, getPrefix`

    - ### Methods inherited from class org.apache.turbine.modules.Assembler

      `getRunData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VelocityPage

          public VelocityPage()

  - ### Method Detail

    - #### doBuildBeforeAction

          protected void doBuildBeforeAction(PipelineData pipelineData)
                                      throws Exception

      Stuffs the Context into the PipelineData so that it is available to the Action module and the Screen module via getContext().
      Overrides:
        `doBuildBeforeAction` in class `DefaultPage`
      Parameters:
        `pipelineData` - Turbine information.
      Throws:
        `Exception,` - a generic exception.
        `Exception`

    - #### doPostBuild

          protected void doPostBuild(PipelineData pipelineData)
                              throws Exception

      Allows the VelocityService to perform post-request actions. (releases the (non-global) tools in the context for reuse later)
      Overrides:
        `doPostBuild` in class `DefaultPage`
      Parameters:
        `pipelineData` - Turbine information.
      Throws:
        `Exception`

Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.