com.atlassian.velocity
Class DefaultVelocityManager

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

public class DefaultVelocityManager
extends Object
implements VelocityManager


Constructor Summary
DefaultVelocityManager()
           
 
Method Summary
protected  Map createContextParams(String baseurl, Map contextParameters)
           
protected  org.apache.velocity.VelocityContext createVelocityContext(Map params)
           
 String getBody(String templateDirectory, String template, Map contextParameters)
           
 String getBody(String templateDirectory, String template, String baseurl, Map contextParameters)
           
 DateFormat getDateFormat()
           
 String getEncodedBody(String templateDirectory, String template, String encoding, Map contextParameters)
           
 String getEncodedBody(String templateDirectory, String template, String baseurl, String encoding, org.apache.velocity.context.Context context)
           
 String getEncodedBody(String templateDirectory, String template, String baseurl, String encoding, Map contextParameters)
           
 String getEncodedBodyForContent(String content, String baseurl, Map contextParameters)
           
protected  String getErrorMessageForException(Exception e)
           
protected  org.apache.velocity.app.VelocityEngine getVe()
           
protected  void initVe(org.apache.velocity.app.VelocityEngine velocityEngine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVelocityManager

public DefaultVelocityManager()
Method Detail

getBody

public String getBody(String templateDirectory,
                      String template,
                      Map contextParameters)
               throws org.apache.velocity.exception.VelocityException
Specified by:
getBody in interface VelocityManager
Throws:
org.apache.velocity.exception.VelocityException

getBody

public String getBody(String templateDirectory,
                      String template,
                      String baseurl,
                      Map contextParameters)
               throws org.apache.velocity.exception.VelocityException
Specified by:
getBody in interface VelocityManager
Throws:
org.apache.velocity.exception.VelocityException

getEncodedBody

public String getEncodedBody(String templateDirectory,
                             String template,
                             String encoding,
                             Map contextParameters)
                      throws org.apache.velocity.exception.VelocityException
Specified by:
getEncodedBody in interface VelocityManager
Throws:
org.apache.velocity.exception.VelocityException

getEncodedBody

public String getEncodedBody(String templateDirectory,
                             String template,
                             String baseurl,
                             String encoding,
                             Map contextParameters)
                      throws org.apache.velocity.exception.VelocityException
Specified by:
getEncodedBody in interface VelocityManager
Throws:
org.apache.velocity.exception.VelocityException

getEncodedBody

public String getEncodedBody(String templateDirectory,
                             String template,
                             String baseurl,
                             String encoding,
                             org.apache.velocity.context.Context context)
                      throws org.apache.velocity.exception.VelocityException
Specified by:
getEncodedBody in interface VelocityManager
Throws:
org.apache.velocity.exception.VelocityException

createContextParams

protected Map createContextParams(String baseurl,
                                  Map contextParameters)

createVelocityContext

protected org.apache.velocity.VelocityContext createVelocityContext(Map params)

getEncodedBodyForContent

public String getEncodedBodyForContent(String content,
                                       String baseurl,
                                       Map contextParameters)
                                throws org.apache.velocity.exception.VelocityException
Specified by:
getEncodedBodyForContent in interface VelocityManager
Throws:
org.apache.velocity.exception.VelocityException

getErrorMessageForException

protected String getErrorMessageForException(Exception e)

getDateFormat

public DateFormat getDateFormat()
Specified by:
getDateFormat in interface VelocityManager

getVe

protected org.apache.velocity.app.VelocityEngine getVe()

initVe

protected void initVe(org.apache.velocity.app.VelocityEngine velocityEngine)


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.