public class VelocityUtils extends Object
Constructor and Description |
---|
VelocityUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getRenderedContent(CharSequence templateContent,
org.apache.velocity.context.Context velocityContext) |
static String |
getRenderedContent(CharSequence templateContent,
Map<?,?> contextMap) |
static String |
getRenderedContent(String templateContent,
org.apache.velocity.context.Context velocityContext)
Deprecated.
since 5.5. Use
getRenderedContent(CharSequence, org.apache.velocity.context.Context) instead. |
static String |
getRenderedContent(String templateContent,
Map<?,?> contextMap)
Deprecated.
since 5.5. Use
getRenderedContent(CharSequence, java.util.Map) instead. |
static String |
getRenderedTemplate(String templateName,
org.apache.velocity.context.Context context) |
static String |
getRenderedTemplate(String templateName,
Map<?,?> contextMap) |
static String |
getRenderedTemplateWithoutSwallowingErrors(String templateName,
org.apache.velocity.context.Context context) |
static String |
getRenderedTemplateWithoutSwallowingErrors(String templateName,
Map<?,?> contextMap) |
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)
Deprecated.
since 5.5. Use
writeRenderedContent(java.io.Writer, CharSequence, java.util.Map) instead. |
static void |
writeRenderedTemplate(Writer writer,
String templateName,
org.apache.velocity.context.Context context) |
static void |
writeRenderedTemplate(Writer writer,
String templateName,
Map<?,?> contextMap) |
public static String getRenderedTemplate(String templateName, Map<?,?> contextMap)
public static void writeRenderedTemplate(Writer writer, String templateName, Map<?,?> contextMap)
public static String getRenderedTemplate(String templateName, org.apache.velocity.context.Context context)
public static void writeRenderedTemplate(Writer writer, String templateName, org.apache.velocity.context.Context context)
public static String getRenderedTemplateWithoutSwallowingErrors(String templateName, Map<?,?> contextMap) throws Exception
Exception
public static String getRenderedTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context) throws Exception
Exception
public static void renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template, org.apache.velocity.context.Context context, Writer writer) throws Exception
Exception
public static void renderTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context, Writer writer) throws Exception
Exception
public static org.apache.velocity.Template getTemplate(String templateName) throws Exception
Exception
public static org.apache.velocity.app.VelocityEngine getVelocityEngine() throws Exception
Exception
@Deprecated public static String getRenderedContent(String templateContent, Map<?,?> contextMap)
getRenderedContent(CharSequence, java.util.Map)
instead.public static String getRenderedContent(CharSequence templateContent, Map<?,?> contextMap)
@Deprecated public static String getRenderedContent(String templateContent, org.apache.velocity.context.Context velocityContext)
getRenderedContent(CharSequence, org.apache.velocity.context.Context)
instead.public static String getRenderedContent(CharSequence templateContent, org.apache.velocity.context.Context velocityContext)
@Deprecated public static void writeRenderedContent(Writer writer, String templateContent, Map<?,?> contextMap)
writeRenderedContent(java.io.Writer, CharSequence, java.util.Map)
instead.public static void writeRenderedContent(Writer writer, CharSequence templateContent, Map<?,?> contextMap)
Copyright © 2003–2015 Atlassian. All rights reserved.