org.apache.turbine.modules.layouts

## Class VelocityCachedLayout

- java.lang.Object
- - org.apache.turbine.modules.Assembler
  - - org.apache.turbine.modules.Layout
    - - org.apache.turbine.modules.layouts.VelocityCachedLayout

-     public class VelocityCachedLayout
      extends Layout

  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$
  Author:
    Raphaël Luta, John D. McNally, Dave Bryson, Henning P. Schmiedehausen

- - ### Field Summary

    - ### Fields inherited from class org.apache.turbine.modules.Layout

      `CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `VelocityCachedLayout()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `doBuild(PipelineData pipelineData)` Method called by LayoutLoader.

    - ### Methods inherited from class org.apache.turbine.modules.Layout

      `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

    - #### VelocityCachedLayout

          public VelocityCachedLayout()

  - ### Method Detail

    - #### doBuild

          public void doBuild(PipelineData pipelineData)
                       throws Exception

      Method called by LayoutLoader.
      Specified by:
        `doBuild` in class `Layout`
      Parameters:
        `pipelineData` - PipelineData
      Throws:
        `Exception` - generic exception

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.