Class ConfluenceVelocityManager
- java.lang.Object
 - 
- org.apache.struts2.views.velocity.VelocityManager
 - 
- com.atlassian.confluence.setup.struts.ConfluenceVelocityManager
 
 
 
- 
public class ConfluenceVelocityManager extends org.apache.struts2.views.velocity.VelocityManagerConfluence specialisation of the Struts VelocityManager.This manager is responsible for providing default Velocity contexts to the Struts velocity infrastructure and attaching application context event listeners.
 
- 
- 
Constructor Summary
Constructors Constructor Description ConfluenceVelocityManager() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.velocity.context.ContextbuildContext(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)static org.apache.velocity.context.ContextgetConfluenceVelocityContext()protected org.apache.velocity.app.VelocityEnginenewVelocityEngine(javax.servlet.ServletContext context)static org.apache.velocity.context.ContextprocessContextForRendering(org.apache.velocity.context.Context context)- 
Methods inherited from class org.apache.struts2.views.velocity.VelocityManager
buildToolContext, createContext, getToolboxManager, getVelocityEngine, getVelocityProperties, init, initToolbox, loadConfiguration, prepareChainedContexts, setChainedContexts, setContainer, setCustomConfigFile, setObjectFactory, setToolBoxLocation, setVelocityProperties 
 - 
 
 - 
 
- 
- 
Method Detail
- 
newVelocityEngine
protected org.apache.velocity.app.VelocityEngine newVelocityEngine(javax.servlet.ServletContext context)
- Overrides:
 newVelocityEnginein classorg.apache.struts2.views.velocity.VelocityManager
 
- 
buildContext
protected org.apache.velocity.context.Context buildContext(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)- Overrides:
 buildContextin classorg.apache.struts2.views.velocity.VelocityManager
 
- 
processContextForRendering
public static org.apache.velocity.context.Context processContextForRendering(org.apache.velocity.context.Context context)
- Parameters:
 context- is currently modified and returned, but do not rely on this as it may change in future.
 
- 
getConfluenceVelocityContext
public static org.apache.velocity.context.Context getConfluenceVelocityContext()
 
 - 
 
 -