public interface

VelocityHelper

com.atlassian.fisheye.plugin.web.helpers.VelocityHelper

Summary

Public Methods
abstract String renderVelocityFragment(String fragment, Map<StringObject> params)
abstract void renderVelocityTemplate(String template, Map<StringObject> params, Writer writer)
abstract void renderVelocityTemplate(InputStream velocityStream, Map<StringObject> params, Writer writer)

Public Methods

public abstract String renderVelocityFragment (String fragment, Map<StringObject> params)

Parameters
fragment a velocity fragment
params a map of parameters to be used as the velocity render context
Returns
  • the rendered text

public abstract void renderVelocityTemplate (String template, Map<StringObject> params, Writer writer)

Parameters
template full path to a velocity template
params a map of parameters to be used as the velocity render context
writer the Writer that the rendered text will be written to
Throws
IOException if there was a problem writing to the supplied Writer

public abstract void renderVelocityTemplate (InputStream velocityStream, Map<StringObject> params, Writer writer)

Parameters
velocityStream input stream over a velocity template
params a map of parameters to be used as the velocity render context
writer the Writer that the rendered text will be written to
Throws
IOException if there was a problem writing to the supplied Writer