com.atlassian.confluence.util.velocity
Class VelocityUtils

java.lang.Object
  extended by com.atlassian.confluence.util.velocity.VelocityUtils
Direct Known Subclasses:
VelocityUtils

public class VelocityUtils
extends java.lang.Object


Constructor Summary
VelocityUtils()
           
 
Method Summary
static java.lang.String getRenderedContent(java.lang.String templateContent, java.util.Map contextMap)
           
static java.lang.String getRenderedTemplate(java.lang.String templateName, org.apache.velocity.context.Context context)
           
static java.lang.String getRenderedTemplate(java.lang.String templateName, java.util.Map contextMap)
           
static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName, org.apache.velocity.context.Context context)
           
static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName, java.util.Map contextMap)
           
static org.apache.velocity.Template getTemplate(java.lang.String templateName)
           
static org.apache.velocity.app.VelocityEngine getVelocityEngine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityUtils

public VelocityUtils()
Method Detail

getRenderedTemplate

public static java.lang.String getRenderedTemplate(java.lang.String templateName,
                                                   java.util.Map contextMap)

getRenderedTemplate

public static java.lang.String getRenderedTemplate(java.lang.String templateName,
                                                   org.apache.velocity.context.Context context)

getRenderedTemplateWithoutSwallowingErrors

public static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName,
                                                                          java.util.Map contextMap)
                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

getRenderedTemplateWithoutSwallowingErrors

public static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName,
                                                                          org.apache.velocity.context.Context context)
                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

getTemplate

public static org.apache.velocity.Template getTemplate(java.lang.String templateName)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

getVelocityEngine

public static org.apache.velocity.app.VelocityEngine getVelocityEngine()
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

getRenderedContent

public static java.lang.String getRenderedContent(java.lang.String templateContent,
                                                  java.util.Map contextMap)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.