com.atlassian.fisheye.plugin.web.helpers
Interface VelocityHelper
public interface VelocityHelper
|
Method Summary |
java.lang.String |
renderVelocityFragment(java.lang.String fragment,
java.util.Map<java.lang.String,java.lang.Object> params)
|
void |
renderVelocityTemplate(java.io.InputStream velocityStream,
java.util.Map<java.lang.String,java.lang.Object> params,
java.io.Writer writer)
|
void |
renderVelocityTemplate(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> params,
java.io.Writer writer)
|
renderVelocityFragment
java.lang.String renderVelocityFragment(java.lang.String fragment,
java.util.Map<java.lang.String,java.lang.Object> params)
- Parameters:
fragment - a velocity fragmentparams - a map of parameters to be used as the velocity render context
- Returns:
- the rendered text
renderVelocityTemplate
void renderVelocityTemplate(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> params,
java.io.Writer writer)
throws java.io.IOException
- Parameters:
template - full path to a velocity templateparams - a map of parameters to be used as the velocity render contextwriter - the Writer that the rendered text will be written to
- Throws:
java.io.IOException - if there was a problem writing to the supplied Writer
renderVelocityTemplate
void renderVelocityTemplate(java.io.InputStream velocityStream,
java.util.Map<java.lang.String,java.lang.Object> params,
java.io.Writer writer)
throws java.io.IOException
- Parameters:
velocityStream - input stream over a velocity templateparams - a map of parameters to be used as the velocity render contextwriter - the Writer that the rendered text will be written to
- Throws:
java.io.IOException - if there was a problem writing to the supplied Writer