Skip navigation links 
 
oracle.stellent.wcm.javaee.script.velocity
Class ServletVelocityContext
java.lang.Object
   oracle.stellent.wcm.client.RequestContext
oracle.stellent.wcm.client.RequestContext
       oracle.stellent.wcm.javaee.ServletRequestContext
oracle.stellent.wcm.javaee.ServletRequestContext
           oracle.stellent.wcm.javaee.script.velocity.ServletVelocityContext
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 java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
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
 
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:
- getWriterin 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:
- processImplin class- ServletRequestContext
 
- 
- Parameters:
- path- the web application page
- forward- true to forward, false to include
- Throws:
- java.lang.Exception
 
Skip navigation links 
 
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.