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.
protected  org.apache.velocity.app.VelocityEngine getVe()
           
 
Methods inherited from class com.atlassian.velocity.DefaultVelocityManager
getBody, getBody, getEncodedBody, getEncodedBody, getEncodedBody, getEncodedBodyForContent, getErrorMessageForException, initVe, writeEncodedBody, writeEncodedBodyForContent
 
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

getVe

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.