com.atlassian.bamboo.ww2
Class BambooFreemarkerManager

java.lang.Object
  extended by FreemarkerManager
      extended by com.atlassian.bamboo.ww2.BambooFreemarkerManager
All Implemented Interfaces:
TemplateRenderer

public class BambooFreemarkerManager
extends FreemarkerManager
implements TemplateRenderer

FreemarkerManager that automatically detects the alternative syntax


Constructor Summary
BambooFreemarkerManager()
           
 
Method Summary
protected  Configuration createConfiguration(ServletContext servletContext)
           
 void populateContext(ScopesHashModel model, OgnlValueStack stack, Object action, HttpServletRequest request, HttpServletResponse response)
           
 String render(String templatePath, Map contextParams)
           
static String renderPage(String path, Map params)
          Static method to render the resource found at the path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooFreemarkerManager

public BambooFreemarkerManager()
Method Detail

createConfiguration

protected Configuration createConfiguration(ServletContext servletContext)
                                     throws TemplateException
Throws:
TemplateException

populateContext

public void populateContext(ScopesHashModel model,
                            OgnlValueStack stack,
                            Object action,
                            HttpServletRequest request,
                            HttpServletResponse response)

renderPage

public static String renderPage(String path,
                                Map params)
Static method to render the resource found at the path

Parameters:
path - - must not be null
params - - params to pass to the freemarker context. May be null
Returns:
the rendered result of the page

render

public String render(String templatePath,
                     Map contextParams)
Specified by:
render in interface TemplateRenderer


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.