Class VelocityUtils
- java.lang.Object
-
- com.atlassian.confluence.util.velocity.VelocityUtils
-
@Deprecated(forRemoval=true) public class VelocityUtils extends Object
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6 for removal in 9.0 UseVelocityHelperService
-
-
Constructor Summary
Constructors Constructor Description VelocityUtils()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getRenderedContent(CharSequence templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.static String
getRenderedContent(CharSequence templateContent, org.apache.velocity.context.Context velocityContext)
Deprecated, for removal: This API element is subject to removal in a future version.static String
getRenderedContent(String templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.static String
getRenderedContent(String templateContent, org.apache.velocity.context.Context velocityContext)
Deprecated, for removal: This API element is subject to removal in a future version.static String
getRenderedTemplate(String templateName, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.static String
getRenderedTemplate(String templateName, org.apache.velocity.context.Context context)
Deprecated, for removal: This API element is subject to removal in a future version.static String
getRenderedTemplateWithoutSwallowingErrors(String templateName, Map<String,Object> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.static String
getRenderedTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context)
Deprecated, for removal: This API element is subject to removal in a future version.static org.apache.velocity.Template
getTemplate(String templateName)
Deprecated, for removal: This API element is subject to removal in a future version.static org.apache.velocity.app.VelocityEngine
getVelocityEngine()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.4 Do not access directly, obtain viaVelocityManager
.static void
renderTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context, Writer writer)
Deprecated, for removal: This API element is subject to removal in a future version.static void
renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template, org.apache.velocity.context.Context context, Writer writer)
Deprecated, for removal: This API element is subject to removal in a future version.static void
writeRenderedContent(Writer writer, CharSequence templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.static void
writeRenderedContent(Writer writer, String templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.static void
writeRenderedTemplate(Writer writer, String templateName, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.static void
writeRenderedTemplate(Writer writer, String templateName, org.apache.velocity.context.Context context)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getRenderedTemplate
public static String getRenderedTemplate(String templateName, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.
-
writeRenderedTemplate
public static void writeRenderedTemplate(Writer writer, String templateName, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getRenderedTemplate
public static String getRenderedTemplate(String templateName, org.apache.velocity.context.Context context)
Deprecated, for removal: This API element is subject to removal in a future version.
-
writeRenderedTemplate
public static void writeRenderedTemplate(Writer writer, String templateName, org.apache.velocity.context.Context context)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getRenderedTemplateWithoutSwallowingErrors
public static String getRenderedTemplateWithoutSwallowingErrors(String templateName, Map<String,Object> contextMap) throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
getRenderedTemplateWithoutSwallowingErrors
public static String getRenderedTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context) throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
renderTemplateWithoutSwallowingErrors
public static void renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template, org.apache.velocity.context.Context context, Writer writer) throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
renderTemplateWithoutSwallowingErrors
public static void renderTemplateWithoutSwallowingErrors(String templateName, org.apache.velocity.context.Context context, Writer writer) throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
getTemplate
public static org.apache.velocity.Template getTemplate(String templateName) throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
getVelocityEngine
@Deprecated(forRemoval=true) public static org.apache.velocity.app.VelocityEngine getVelocityEngine() throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.since 8.4 Do not access directly, obtain viaVelocityManager
.- Throws:
Exception
-
getRenderedContent
public static String getRenderedContent(String templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getRenderedContent
public static String getRenderedContent(CharSequence templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getRenderedContent
public static String getRenderedContent(String templateContent, org.apache.velocity.context.Context velocityContext)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getRenderedContent
public static String getRenderedContent(CharSequence templateContent, org.apache.velocity.context.Context velocityContext)
Deprecated, for removal: This API element is subject to removal in a future version.
-
writeRenderedContent
public static void writeRenderedContent(Writer writer, String templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.
-
writeRenderedContent
public static void writeRenderedContent(Writer writer, CharSequence templateContent, Map<?,?> contextMap)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-