Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.javaee.script.velocity
Class ServletVelocityContext

java.lang.Object
  extended by oracle.stellent.wcm.client.RequestContext
      extended by oracle.stellent.wcm.javaee.ServletRequestContext
          extended by oracle.stellent.wcm.javaee.script.velocity.ServletVelocityContext


public class ServletVelocityContext
extends ServletRequestContext

Special context used for evaluating Velocity templates in a servlet environment


Constructor Summary
ServletVelocityContext(org.apache.velocity.tools.view.context.ChainedContext chainedContext, java.io.Writer writer)
          Create a servlet context with pointers to the active velocity engine and context

 

Method Summary
 org.apache.velocity.tools.view.context.ChainedContext getContext()
           
 org.apache.velocity.app.VelocityEngine getEngine()
           
 java.io.Writer getWriter()
           
protected  void processImpl(java.lang.String path, boolean forward)
          Execute the path

 

Methods inherited from class oracle.stellent.wcm.javaee.ServletRequestContext
getAttribute, getAttributeNames, getContextPath, getPageContext, getParameters, getRequest, getRequestPath, getResponse, getServletContext, getUserPrincipal, include, sendRedirect, setAttribute, setHeader

 

Methods inherited from class oracle.stellent.wcm.client.RequestContext
forward, getParameter, getSiteContext, include, process, setSiteContext, swapAttributes

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ServletVelocityContext

public ServletVelocityContext(org.apache.velocity.tools.view.context.ChainedContext chainedContext,
                              java.io.Writer writer)
Create a servlet context with pointers to the active velocity engine and context
Parameters:
chainedContext - the velocity context
writer - the writer

Method Detail

getEngine

public org.apache.velocity.app.VelocityEngine getEngine()

getContext

public org.apache.velocity.tools.view.context.ChainedContext getContext()

getWriter

public java.io.Writer getWriter()
                         throws java.io.IOException
Overrides:
getWriter in class ServletRequestContext
Returns:
the writer for the given context
Throws:
java.io.IOException

processImpl

protected void processImpl(java.lang.String path,
                           boolean forward)
                    throws java.lang.Exception
Execute the path
Overrides:
processImpl in class ServletRequestContext
Parameters:
path - the web application page
forward - true to forward, false to include
Throws:
java.lang.Exception

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.