org.apache.velocity.tools.view.context
Class ChainedContext

java.lang.Object
  extended by org.apache.velocity.tools.ToolContext
      extended by org.apache.velocity.tools.view.ViewToolContext
          extended by org.apache.velocity.tools.view.context.ChainedContext
All Implemented Interfaces:
org.apache.velocity.context.Context, ViewContext

Deprecated. Use ViewToolContext instead

@Deprecated
public class ChainedContext
extends ViewToolContext
implements ViewContext

Version:
$Id: ChainedContext.java 608694 2008-01-04 00:53:32Z nbubna $

Field Summary
 
Fields inherited from class org.apache.velocity.tools.ToolContext
CATCH_EXCEPTIONS_KEY, CONTEXT_KEY, ENGINE_KEY, LOCALE_KEY, LOG_KEY, PATH_KEY
 
Fields inherited from interface org.apache.velocity.tools.view.context.ViewContext
XHTML
 
Fields inherited from interface org.apache.velocity.tools.view.ViewContext
APPLICATION, DEFAULT_TOOLBOX_KEY, REQUEST, RESPONSE, SERVLET_CONTEXT_KEY, SESSION
 
Constructor Summary
ChainedContext(org.apache.velocity.context.Context ctx, org.apache.velocity.app.VelocityEngine velocity, HttpServletRequest request, HttpServletResponse response, ServletContext application)
          Deprecated.  
ChainedContext(org.apache.velocity.app.VelocityEngine velocity, HttpServletRequest request, HttpServletResponse response, ServletContext application)
          Deprecated.  
 
Method Summary
 Map<String,Object> getToolbox()
          Deprecated. Returns the tools for this context
protected  Object internalGet(String key)
          Deprecated.  
 void setToolbox(Map<String,Object> box)
          Deprecated.  
 
Methods inherited from class org.apache.velocity.tools.view.ViewToolContext
addToolboxesUnderKey, containsKey, get, getAttribute, getRequest, getResponse, getServletApi, getServletContext, getSession, getToolboxes, getToolVar, getUserVar, getVelocityContext, getVelocityEngine, putToolProperties, setToolboxKey
 
Methods inherited from class org.apache.velocity.tools.ToolContext
addToolbox, containsKey, findTool, getKeys, getToolClassMap, getToolProperties, getUserCanOverwriteTools, keySet, put, putAll, putToolProperties, putToolProperty, putVelocityEngine, remove, setUserCanOverwriteTools
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.velocity.tools.view.ViewContext
getAttribute, getRequest, getResponse, getServletContext, getVelocityContext, getVelocityEngine
 

Constructor Detail

ChainedContext

public ChainedContext(org.apache.velocity.app.VelocityEngine velocity,
                      HttpServletRequest request,
                      HttpServletResponse response,
                      ServletContext application)
Deprecated. 

ChainedContext

public ChainedContext(org.apache.velocity.context.Context ctx,
                      org.apache.velocity.app.VelocityEngine velocity,
                      HttpServletRequest request,
                      HttpServletResponse response,
                      ServletContext application)
Deprecated. 
Method Detail

setToolbox

public void setToolbox(Map<String,Object> box)
Deprecated. 

Sets a "toolbox" in the style of VelocityTools 1.x.


getToolbox

public Map<String,Object> getToolbox()
Deprecated. 

Returns the tools for this context

Overrides:
getToolbox in class ToolContext
Returns:
any tools passed in via setToolbox() plus the results of ToolContext.getToolbox().
Since:
VelocityTools 1.3

internalGet

protected Object internalGet(String key)
Deprecated. 
Overrides:
internalGet in class ToolContext


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