Klasse VelocityCachedLayout
java.lang.Object
org.apache.turbine.modules.layouts.VelocityLayout
org.apache.turbine.modules.layouts.VelocityDirectLayout
org.apache.turbine.modules.layouts.VelocityCachedLayout
This Layout module is Turbine 2.3.3 VelocityDirectLayout (same package)
with methods added for
PipelineData
. It is used in Jetspeed-1 portal.
By using this layout any view write will immediately call the provided print writer RunData.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 the RunData.setAction(String)
in the request
(not only the model, but also) additional response headers could be set, cft. DefaultPage.doBuild(PipelineData)
.- Version:
- $Id$
- Autor:
- Raphaël Luta, John D. McNally, Dave Bryson, Henning P. Schmiedehausen
-
Feldübersicht
Von Klasse geerbte Felder org.apache.turbine.modules.layouts.VelocityLayout
log, prefix, velocityService
Von Schnittstelle geerbte Felder org.apache.turbine.modules.Layout
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
render
(PipelineData pipelineData, org.apache.velocity.context.Context context, String templateName) Render layoutVon Klasse geerbte Methoden org.apache.turbine.modules.layouts.VelocityDirectLayout
populateContext
Von Klasse geerbte Methoden org.apache.turbine.modules.layouts.VelocityLayout
doBuild
-
Konstruktordetails
-
VelocityCachedLayout
public VelocityCachedLayout()
-
-
Methodendetails
-
render
protected void render(PipelineData pipelineData, org.apache.velocity.context.Context context, String templateName) throws Exception Render layout- Setzt außer Kraft:
render
in KlasseVelocityLayout
- Parameter:
pipelineData
- PipelineDatacontext
- the Velocity contexttemplateName
- relative path to Velocity template- Löst aus:
Exception
- if rendering fails
-