Class VelocityCachedLayout
- java.lang.Object
-
- org.apache.turbine.modules.layouts.VelocityLayout
-
- org.apache.turbine.modules.layouts.VelocityDirectLayout
-
- org.apache.turbine.modules.layouts.VelocityCachedLayout
-
public class VelocityCachedLayout extends VelocityDirectLayout
This Layout module is Turbine 2.3.3 VelocityDirectLayout (same package) with methods added forPipelineData
. It is used in Jetspeed-1 portal. By using this layout any view write will immediately call the provided print writerRunData.getOut()
and the HTTP servlet response will be flushed and set the committed flag. This means of course no change to the HTTP response header will be possible afterwards. By setting theRunData.setAction(String)
in the request (not only the model, but also) additional response headers could be set, cft.DefaultPage.doBuild(PipelineData)
.- Version:
- $Id$
- Author:
- Raphaƫl Luta, John D. McNally, Dave Bryson, Henning P. Schmiedehausen
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.modules.layouts.VelocityLayout
log, prefix, velocityService
-
Fields inherited from interface org.apache.turbine.modules.Layout
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
-
Constructor Summary
Constructors Constructor Description VelocityCachedLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
render(PipelineData pipelineData, org.apache.velocity.context.Context context, String templateName)
Render layout-
Methods inherited from class org.apache.turbine.modules.layouts.VelocityDirectLayout
populateContext
-
Methods inherited from class org.apache.turbine.modules.layouts.VelocityLayout
doBuild
-
-
-
-
Constructor Detail
-
VelocityCachedLayout
public VelocityCachedLayout()
-
-
Method Detail
-
render
protected void render(PipelineData pipelineData, org.apache.velocity.context.Context context, String templateName) throws Exception
Render layout- Overrides:
render
in classVelocityLayout
- Parameters:
pipelineData
- PipelineDatacontext
- the Velocity contexttemplateName
- relative path to Velocity template- Throws:
Exception
- if rendering fails
-
-