public class VelocityCachedLayout extends VelocityDirectLayout
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).log, prefix, velocityServiceCACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX| Constructor and Description |
|---|
VelocityCachedLayout() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
render(PipelineData pipelineData,
org.apache.velocity.context.Context context,
String templateName)
Render layout
|
populateContextdoBuildprotected void render(PipelineData pipelineData, org.apache.velocity.context.Context context, String templateName) throws Exception
render in class VelocityLayoutpipelineData - PipelineDatacontext - the Velocity contexttemplateName - relative path to Velocity templateException - if rendering failsCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.