Package org.apache.turbine.modules.pages
Class VelocityPage
- java.lang.Object
-
- 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$
- 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 interface org.apache.turbine.modules.Page
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
-
Constructor Summary
Constructors Constructor Description VelocityPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
-
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 classDefaultPage
- 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 classDefaultPage
- Parameters:
pipelineData
- Turbine information.- Throws:
Exception
- a generic exception.
-
-