public interface VelocityHelper
| Modifier and Type | Method and Description |
|---|---|
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) |
java.lang.String renderVelocityFragment(java.lang.String fragment,
java.util.Map<java.lang.String,java.lang.Object> params)
fragment - a velocity fragmentparams - a map of parameters to be used as the velocity render contextvoid renderVelocityTemplate(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> params,
java.io.Writer writer)
throws java.io.IOException
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 tojava.io.IOException - if there was a problem writing to the supplied Writervoid renderVelocityTemplate(java.io.InputStream velocityStream,
java.util.Map<java.lang.String,java.lang.Object> params,
java.io.Writer writer)
throws java.io.IOException
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 tojava.io.IOException - if there was a problem writing to the supplied Writer