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, org.apache.velocity.context.Context velocityContext)
           
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()
           
static void renderTemplateWithoutSwallowingErrors(java.lang.String templateName, org.apache.velocity.context.Context context, java.io.Writer writer)
           
static void renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template, org.apache.velocity.context.Context context, java.io.Writer writer)
           
 
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

renderTemplateWithoutSwallowingErrors

public static void renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template,
                                                         org.apache.velocity.context.Context context,
                                                         java.io.Writer writer)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

renderTemplateWithoutSwallowingErrors

public static void renderTemplateWithoutSwallowingErrors(java.lang.String templateName,
                                                         org.apache.velocity.context.Context context,
                                                         java.io.Writer writer)
                                                  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)

getRenderedContent

public static java.lang.String getRenderedContent(java.lang.String templateContent,
                                                  org.apache.velocity.context.Context velocityContext)


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