org.apache.tiles.velocity.context
Class VelocityTilesRequestContext

java.lang.Object
  extended by org.apache.tiles.context.TilesRequestContextWrapper
      extended by org.apache.tiles.velocity.context.VelocityTilesRequestContext
All Implemented Interfaces:
TilesRequestContext

public class VelocityTilesRequestContext
extends TilesRequestContextWrapper

The implementation of the Tiles request context specific for Velocity.

Since:
2.2.0
Version:
$Rev: 769961 $ $Date: 2009-04-30 00:07:34 +0200 (gio, 30 apr 2009) $

Constructor Summary
VelocityTilesRequestContext(TilesRequestContext enclosedRequest, org.apache.velocity.context.Context ctx, java.io.Writer writer)
          Constructor.
 
Method Summary
 void dispatch(java.lang.String path)
          
 java.io.PrintWriter getPrintWriter()
          
 java.lang.Object[] getRequestObjects()
          
 java.io.Writer getWriter()
          
 void include(java.lang.String path)
          
 
Methods inherited from class org.apache.tiles.context.TilesRequestContextWrapper
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getResponse, getSessionScope, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityTilesRequestContext

public VelocityTilesRequestContext(TilesRequestContext enclosedRequest,
                                   org.apache.velocity.context.Context ctx,
                                   java.io.Writer writer)
Constructor.

Parameters:
enclosedRequest - The request that exposes non-Velocity specific properties
ctx - The Velocity current context.
writer - The writer to use to render the response. It may be null, if not necessary.
Since:
2.2.0
Method Detail

dispatch

public void dispatch(java.lang.String path)
              throws java.io.IOException

Specified by:
dispatch in interface TilesRequestContext
Overrides:
dispatch in class TilesRequestContextWrapper
Throws:
java.io.IOException

include

public void include(java.lang.String path)
             throws java.io.IOException

Specified by:
include in interface TilesRequestContext
Overrides:
include in class TilesRequestContextWrapper
Throws:
java.io.IOException

getPrintWriter

public java.io.PrintWriter getPrintWriter()
                                   throws java.io.IOException

Specified by:
getPrintWriter in interface TilesRequestContext
Overrides:
getPrintWriter in class TilesRequestContextWrapper
Throws:
java.io.IOException

getWriter

public java.io.Writer getWriter()
                         throws java.io.IOException

Specified by:
getWriter in interface TilesRequestContext
Overrides:
getWriter in class TilesRequestContextWrapper
Throws:
java.io.IOException

getRequestObjects

public java.lang.Object[] getRequestObjects()

Specified by:
getRequestObjects in interface TilesRequestContext
Overrides:
getRequestObjects in class TilesRequestContextWrapper


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.