Class 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.

    • Field Summary

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

        KEY_VELOCITY_STRUTS_CONTEXT, PARENT, STRUTS, TAG, toolboxManager
    • 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
    • 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
      • 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 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()