Class ConfluenceVelocityManager


  • public 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.

    • Field Summary

      • Fields inherited from class org.apache.struts2.views.velocity.VelocityManager

        KEY_VELOCITY_STRUTS_CONTEXT, toolboxManager
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.velocity.context.Context buildContext​(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)  
      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

        buildToolContext, createContext, getToolboxManager, getVelocityEngine, getVelocityProperties, init, initToolbox, loadConfiguration, prepareChainedContexts, setChainedContexts, setContainer, setCustomConfigFile, setObjectFactory, setToolBoxLocation, setVelocityProperties
    • Constructor Detail

      • ConfluenceVelocityManager

        public ConfluenceVelocityManager()
    • Method Detail

      • newVelocityEngine

        protected org.apache.velocity.app.VelocityEngine newVelocityEngine​(javax.servlet.ServletContext context)
        Overrides:
        newVelocityEngine in class org.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:
        buildContext in class org.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()