com.atlassian.confluence.util.velocity
Class VelocityUtils

java.lang.Object
  extended by com.atlassian.confluence.util.velocity.VelocityUtils

public class VelocityUtils
extends java.lang.Object


Constructor Summary
VelocityUtils()
           
 
Method Summary
static java.lang.String getRenderedContent(java.lang.CharSequence templateContent, org.apache.velocity.context.Context velocityContext)
           
static java.lang.String getRenderedContent(java.lang.CharSequence templateContent, java.util.Map<?,?> contextMap)
           
static java.lang.String getRenderedContent(java.lang.String templateContent, org.apache.velocity.context.Context velocityContext)
          Deprecated. since 5.5. Use getRenderedContent(CharSequence, org.apache.velocity.context.Context) instead.
static java.lang.String getRenderedContent(java.lang.String templateContent, java.util.Map<?,?> contextMap)
          Deprecated. since 5.5. Use getRenderedContent(CharSequence, java.util.Map) instead.
static java.lang.String getRenderedTemplate(java.lang.String templateName, org.apache.velocity.context.Context context)
           
static java.lang.String getRenderedTemplate(java.lang.String templateName, java.util.Map<?,?> contextMap)
           
static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName, org.apache.velocity.context.Context context)
           
static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName, java.util.Map<?,?> contextMap)
           
static org.apache.velocity.Template getTemplate(java.lang.String templateName)
           
static org.apache.velocity.app.VelocityEngine getVelocityEngine()
           
static void renderTemplateWithoutSwallowingErrors(java.lang.String templateName, org.apache.velocity.context.Context context, java.io.Writer writer)
           
static void renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template, org.apache.velocity.context.Context context, java.io.Writer writer)
           
static void writeRenderedContent(java.io.Writer writer, java.lang.CharSequence templateContent, java.util.Map<?,?> contextMap)
           
static void writeRenderedContent(java.io.Writer writer, java.lang.String templateContent, java.util.Map<?,?> contextMap)
          Deprecated. since 5.5. Use writeRenderedContent(java.io.Writer, CharSequence, java.util.Map) instead.
static void writeRenderedTemplate(java.io.Writer writer, java.lang.String templateName, org.apache.velocity.context.Context context)
           
static void writeRenderedTemplate(java.io.Writer writer, java.lang.String templateName, java.util.Map<?,?> contextMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityUtils

public VelocityUtils()
Method Detail

getRenderedTemplate

public static java.lang.String getRenderedTemplate(java.lang.String templateName,
                                                   java.util.Map<?,?> contextMap)

writeRenderedTemplate

public static void writeRenderedTemplate(java.io.Writer writer,
                                         java.lang.String templateName,
                                         java.util.Map<?,?> contextMap)

getRenderedTemplate

public static java.lang.String getRenderedTemplate(java.lang.String templateName,
                                                   org.apache.velocity.context.Context context)

writeRenderedTemplate

public static void writeRenderedTemplate(java.io.Writer writer,
                                         java.lang.String templateName,
                                         org.apache.velocity.context.Context context)

getRenderedTemplateWithoutSwallowingErrors

public static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName,
                                                                          java.util.Map<?,?> contextMap)
                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

getRenderedTemplateWithoutSwallowingErrors

public static java.lang.String getRenderedTemplateWithoutSwallowingErrors(java.lang.String templateName,
                                                                          org.apache.velocity.context.Context context)
                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

renderTemplateWithoutSwallowingErrors

public static void renderTemplateWithoutSwallowingErrors(org.apache.velocity.Template template,
                                                         org.apache.velocity.context.Context context,
                                                         java.io.Writer writer)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

renderTemplateWithoutSwallowingErrors

public static void renderTemplateWithoutSwallowingErrors(java.lang.String templateName,
                                                         org.apache.velocity.context.Context context,
                                                         java.io.Writer writer)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

getTemplate

public static org.apache.velocity.Template getTemplate(java.lang.String templateName)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

getVelocityEngine

public static org.apache.velocity.app.VelocityEngine getVelocityEngine()
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

getRenderedContent

@Deprecated
public static java.lang.String getRenderedContent(java.lang.String templateContent,
                                                             java.util.Map<?,?> contextMap)
Deprecated. since 5.5. Use getRenderedContent(CharSequence, java.util.Map) instead.


getRenderedContent

public static java.lang.String getRenderedContent(java.lang.CharSequence templateContent,
                                                  java.util.Map<?,?> contextMap)

getRenderedContent

@Deprecated
public static java.lang.String getRenderedContent(java.lang.String templateContent,
                                                             org.apache.velocity.context.Context velocityContext)
Deprecated. since 5.5. Use getRenderedContent(CharSequence, org.apache.velocity.context.Context) instead.


getRenderedContent

public static java.lang.String getRenderedContent(java.lang.CharSequence templateContent,
                                                  org.apache.velocity.context.Context velocityContext)

writeRenderedContent

@Deprecated
public static void writeRenderedContent(java.io.Writer writer,
                                                   java.lang.String templateContent,
                                                   java.util.Map<?,?> contextMap)
Deprecated. since 5.5. Use writeRenderedContent(java.io.Writer, CharSequence, java.util.Map) instead.


writeRenderedContent

public static void writeRenderedContent(java.io.Writer writer,
                                        java.lang.CharSequence templateContent,
                                        java.util.Map<?,?> contextMap)


Copyright © 2003-2014 Atlassian. All Rights Reserved.