Class VelocityUtils
- java.lang.Object
-
- com.atlassian.confluence.util.velocity.VelocityUtils
-
public class VelocityUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description VelocityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getRenderedContent(CharSequence templateContent, Map<?,?> contextMap)
static String
getRenderedContent(CharSequence templateContent, org.apache.velocity.context.Context velocityContext)
static String
getRenderedContent(String templateContent, Map<?,?> contextMap)
static String
getRenderedContent(String templateContent, org.apache.velocity.context.Context velocityContext)
static String
getRenderedTemplate(String templateName, Map<?,?> contextMap)
static String
getRenderedTemplate(String templateName, org.apache.velocity.context.Context context)
static String
getRenderedTemplateWithoutSwallowingErrors(String templateName, Map<String,Object> contextMap)
static String
getRenderedTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context)
static org.apache.velocity.Template
getTemplate(String templateName)
static org.apache.velocity.app.VelocityEngine
getVelocityEngine()
static void
renderTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context, Writer writer)
static void
renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template, org.apache.velocity.context.Context context, Writer writer)
static void
writeRenderedContent(Writer writer, CharSequence templateContent, Map<?,?> contextMap)
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, org.apache.velocity.context.Context context)
-
-
-
Method Detail
-
getRenderedTemplate
public static String getRenderedTemplate(String templateName, Map<?,?> contextMap)
-
writeRenderedTemplate
public static void writeRenderedTemplate(Writer writer, String templateName, Map<?,?> contextMap)
-
getRenderedTemplate
public static String getRenderedTemplate(String templateName, org.apache.velocity.context.Context context)
-
writeRenderedTemplate
public static void writeRenderedTemplate(Writer writer, String templateName, org.apache.velocity.context.Context context)
-
getRenderedTemplateWithoutSwallowingErrors
public static String getRenderedTemplateWithoutSwallowingErrors(String templateName, Map<String,Object> contextMap) throws Exception
- Throws:
Exception
-
getRenderedTemplateWithoutSwallowingErrors
public static String getRenderedTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context) throws Exception
- Throws:
Exception
-
renderTemplateWithoutSwallowingErrors
public static void renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template, org.apache.velocity.context.Context context, Writer writer) throws Exception
- Throws:
Exception
-
renderTemplateWithoutSwallowingErrors
public static void renderTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context, Writer writer) throws Exception
- Throws:
Exception
-
getTemplate
public static org.apache.velocity.Template getTemplate(String templateName) throws Exception
- Throws:
Exception
-
getVelocityEngine
public static org.apache.velocity.app.VelocityEngine getVelocityEngine() throws Exception
- Throws:
Exception
-
getRenderedContent
public static String getRenderedContent(String templateContent, Map<?,?> contextMap)
-
getRenderedContent
public static String getRenderedContent(CharSequence templateContent, Map<?,?> contextMap)
-
getRenderedContent
public static String getRenderedContent(String templateContent, org.apache.velocity.context.Context velocityContext)
-
getRenderedContent
public static String getRenderedContent(CharSequence templateContent, org.apache.velocity.context.Context velocityContext)
-
writeRenderedContent
public static void writeRenderedContent(Writer writer, String templateContent, Map<?,?> contextMap)
-
writeRenderedContent
public static void writeRenderedContent(Writer writer, CharSequence templateContent, Map<?,?> contextMap)
-
-