Class ConfluenceVelocityManager
- java.lang.Object
-
- com.atlassian.confluence.setup.struts.ConfluenceVelocityManager
-
- All Implemented Interfaces:
org.apache.struts2.views.velocity.VelocityManagerInterface
public class ConfluenceVelocityManager extends Object implements org.apache.struts2.views.velocity.VelocityManagerInterface
Lightweight variant of the Struts
VelocityManager. Responsible for reading and loading configuration in order to initialise the Velocity engine, as well as constructing rendering contexts.createContext(com.opensymphony.xwork2.util.ValueStack, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)is called to construct a context for rendering Struts Velocity Results and SiteMesh decoratorsgetConfluenceVelocityContext()can be called to construct a base context for other rendering purposes
-
-
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.ContextcreateContext(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)static org.apache.velocity.context.ContextgetConfluenceVelocityContext()org.apache.velocity.app.VelocityEnginegetVelocityEngine()voidinit(javax.servlet.ServletContext context)static org.apache.velocity.context.ContextprocessContextForRendering(org.apache.velocity.context.Context context)
-
-
-
Method Detail
-
getVelocityEngine
public org.apache.velocity.app.VelocityEngine getVelocityEngine()
- Specified by:
getVelocityEnginein interfaceorg.apache.struts2.views.velocity.VelocityManagerInterface
-
createContext
public org.apache.velocity.context.Context createContext(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)- Specified by:
createContextin interfaceorg.apache.struts2.views.velocity.VelocityManagerInterface
-
init
public void init(javax.servlet.ServletContext context)
- Specified by:
initin interfaceorg.apache.struts2.views.velocity.VelocityManagerInterface
-
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()
-
-