|
||||||||||
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.rhino.ScriptRunner
public class ScriptRunner
Helper class for executing scripts.
Constructor Summary | |
---|---|
ScriptRunner()
|
Method Summary | |
---|---|
void |
render(Script script,
java.io.Writer out,
Context context)
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 ScriptRunner()
Method Detail |
---|
public void render(Script script, java.io.Writer out, Context context) throws ProcessingException
script
- The template used to render the resource.out
- A valid Writer
. The writer will be flushed when
output is complete. The writer will not be closed.context
- 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 |