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 1773378 2016-12-09 13:19:59Z 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.

    - #### 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` - a generic exception.

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.