public class

VelocityUtils

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.util.velocity.VelocityUtils

Summary

Public Constructors
VelocityUtils()
Public Methods
static String getRenderedContent(String templateContent, Context velocityContext)
static String getRenderedContent(String templateContent, Map<?, ?> contextMap)
static String getRenderedTemplate(String templateName, Context context)
static String getRenderedTemplate(String templateName, Map<?, ?> contextMap)
static String getRenderedTemplateWithoutSwallowingErrors(String templateName, Map<?, ?> contextMap)
static String getRenderedTemplateWithoutSwallowingErrors(String templateName, Context context)
static Template getTemplate(String templateName)
static VelocityEngine getVelocityEngine()
static void renderTemplateWithoutSwallowingErrors(Template template, Context context, Writer writer)
static void renderTemplateWithoutSwallowingErrors(String templateName, Context context, Writer writer)
static void writeRenderedContent(Writer writer, String templateContent, Map<?, ?> contextMap)
static void writeRenderedTemplate(Writer writer, String templateName, Map<?, ?> contextMap)
static void writeRenderedTemplate(Writer writer, String templateName, Context context)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public VelocityUtils ()

Public Methods

public static String getRenderedContent (String templateContent, Context velocityContext)

public static String getRenderedContent (String templateContent, Map<?, ?> contextMap)

public static String getRenderedTemplate (String templateName, Context context)

public static String getRenderedTemplate (String templateName, Map<?, ?> contextMap)

public static String getRenderedTemplateWithoutSwallowingErrors (String templateName, Map<?, ?> contextMap)

Throws
Exception

public static String getRenderedTemplateWithoutSwallowingErrors (String templateName, Context context)

Throws
Exception

public static Template getTemplate (String templateName)

Throws
Exception

public static VelocityEngine getVelocityEngine ()

Throws
Exception

public static void renderTemplateWithoutSwallowingErrors (Template template, Context context, Writer writer)

Throws
Exception

public static void renderTemplateWithoutSwallowingErrors (String templateName, Context context, Writer writer)

Throws
Exception

public static void writeRenderedContent (Writer writer, String templateContent, Map<?, ?> contextMap)

public static void writeRenderedTemplate (Writer writer, String templateName, Map<?, ?> contextMap)

public static void writeRenderedTemplate (Writer writer, String templateName, Context context)