Class VelocityUtils

    • Constructor Detail

      • VelocityUtils

        public VelocityUtils()
        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 via VelocityManager.
        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.