|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.plugins.scripting.AbstractTextProcessor
ccc.plugins.scripting.velocity.VelocityProcessor
public class VelocityProcessor
Renders a resource as text using the velocity library.
Nested Class Summary | |
---|---|
static class |
VelocityProcessor.EntityNotFoundHandler
Velocity event handler to convert EntityNotFoundExceptions to NULL. |
Constructor Summary | |
---|---|
VelocityProcessor()
|
Method Summary | |
---|---|
void |
render(Script template,
java.io.Writer output,
Context ctxt)
Render a resource with the specified template. |
void |
setWhitelist(java.util.List<java.lang.String> allowedClasses)
Specify a list of classes accessible to this processor. |
Methods inherited from class ccc.plugins.scripting.AbstractTextProcessor |
---|
handleException, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityProcessor()
Method Detail |
---|
public void render(Script template, java.io.Writer output, Context ctxt) throws ProcessingException
template
- The template used to render the resource.output
- A valid Writer
. The writer will be flushed when
output is complete. The writer will not be closed.ctxt
- Additional values that are passed to the template.
ProcessingException
- If an error occurs during rendering.public void setWhitelist(java.util.List<java.lang.String> allowedClasses)
allowedClasses
- The list of classes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |