com.atlassian.velocity
Class JiraVelocityManager

java.lang.Object
  extended by com.atlassian.velocity.DefaultVelocityManager
      extended by com.atlassian.velocity.JiraVelocityManager
All Implemented Interfaces:
com.atlassian.velocity.VelocityManager

public class JiraVelocityManager
extends com.atlassian.velocity.DefaultVelocityManager


Constructor Summary
JiraVelocityManager(DateTimeFormatter dateTimeFormatter)
           
JiraVelocityManager(DateTimeFormatter dateTimeFormatter, VelocityEngineFactory velocityEngineFactory)
           
 
Method Summary
protected  Map<String,?> createContextParams(String baseurl, Map contextParameters)
           
protected  org.apache.velocity.VelocityContext createVelocityContext(Map params)
           
 DateFormat getDateFormat()
          Returns a new DateFormat.
 String getEncodedBodyForContent(String content, org.apache.velocity.context.Context context)
           
protected  org.apache.velocity.app.VelocityEngine getVe()
           
 
Methods inherited from class com.atlassian.velocity.DefaultVelocityManager
getBody, getBody, getEncodedBody, getEncodedBody, getEncodedBody, getEncodedBodyForContent, getErrorMessageForException, initVe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraVelocityManager

public JiraVelocityManager(DateTimeFormatter dateTimeFormatter)

JiraVelocityManager

public JiraVelocityManager(DateTimeFormatter dateTimeFormatter,
                           VelocityEngineFactory velocityEngineFactory)
Method Detail

getDateFormat

public DateFormat getDateFormat()
Returns a new DateFormat.

Specified by:
getDateFormat in interface com.atlassian.velocity.VelocityManager
Overrides:
getDateFormat in class com.atlassian.velocity.DefaultVelocityManager
Returns:
a new DateFormat

createVelocityContext

protected org.apache.velocity.VelocityContext createVelocityContext(Map params)
Overrides:
createVelocityContext in class com.atlassian.velocity.DefaultVelocityManager

createContextParams

protected Map<String,?> createContextParams(String baseurl,
                                            Map contextParameters)
Overrides:
createContextParams in class com.atlassian.velocity.DefaultVelocityManager

getEncodedBodyForContent

public String getEncodedBodyForContent(String content,
                                       org.apache.velocity.context.Context context)

getVe

protected org.apache.velocity.app.VelocityEngine getVe()
Overrides:
getVe in class com.atlassian.velocity.DefaultVelocityManager


Copyright © 2002-2013 Atlassian. All Rights Reserved.