Class ConfluenceVelocityManager
- java.lang.Object
-
- org.apache.struts2.views.velocity.VelocityManager
-
- com.atlassian.confluence.setup.struts.ConfluenceVelocityManager
-
public final class ConfluenceVelocityManager extends org.apache.struts2.views.velocity.VelocityManager
Confluence 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 org.apache.velocity.context.Context
createContext(com.opensymphony.xwork2.util.ValueStack ognlValueStack, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
static org.apache.velocity.context.Context
getConfluenceVelocityContext()
protected org.apache.velocity.app.VelocityEngine
newVelocityEngine(javax.servlet.ServletContext context)
static org.apache.velocity.context.Context
processContextForRendering(org.apache.velocity.context.Context context)
-
Methods inherited from class org.apache.struts2.views.velocity.VelocityManager
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:
newVelocityEngine
in classorg.apache.struts2.views.velocity.VelocityManager
-
createContext
public org.apache.velocity.context.Context createContext(com.opensymphony.xwork2.util.ValueStack ognlValueStack, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
- Overrides:
createContext
in 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()
-
-