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 Use VelocityHelperService
  • Constructor Details

    • VelocityUtils

      public VelocityUtils()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • 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
    • 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.