org.apache.turbine.modules.layouts
Class VelocityDirectLayout

java.lang.Object
  extended by org.apache.turbine.modules.Assembler
      extended by org.apache.turbine.modules.Layout
          extended by org.apache.turbine.modules.layouts.VelocityDirectLayout

public class VelocityDirectLayout
extends Layout

This Layout module allows Velocity templates to be used as layouts. It will stream directly the output of the layout and navigation templates to the output writer without using a screen. Use this if you have a large page to output and won't buffer it in the memory.

Version:
$Id: VelocityDirectLayout.java 1071044 2011-02-15 20:47:31Z tv $
Author:
Raphaƫl Luta, John D. McNally, Dave Bryson, Henning P. Schmiedehausen, Peter Courcoux

Field Summary
 
Fields inherited from class org.apache.turbine.modules.Layout
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
 
Constructor Summary
VelocityDirectLayout()
           
 
Method Summary
 void doBuild(PipelineData pipelineData)
          Method called by LayoutLoader.
 void doBuild(RunData data)
          Deprecated. Use the PipelineData version instead
 
Methods inherited from class org.apache.turbine.modules.Layout
build, 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

VelocityDirectLayout

public VelocityDirectLayout()
Method Detail

doBuild

@Deprecated
public void doBuild(RunData data)
             throws Exception
Deprecated. Use the PipelineData version instead

Method called by LayoutLoader.

Specified by:
doBuild in class Layout
Parameters:
data - Turbine information.
Throws:
Exception - a generic exception.

doBuild

public void doBuild(PipelineData pipelineData)
             throws Exception
Method called by LayoutLoader.

Overrides:
doBuild in class Layout
Parameters:
data - PipelineData
Throws:
Exception - generic exception


Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.