|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.processor.BaseProcessor org.springframework.extensions.webscripts.processor.BaseRegisterableTemplateProcessor org.springframework.extensions.webscripts.processor.AbstractTemplateProcessor org.springframework.extensions.webscripts.processor.GroovyTemplateProcessor
public class GroovyTemplateProcessor
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor |
---|
processorExtensions |
Constructor Summary | |
---|---|
GroovyTemplateProcessor()
|
Method Summary | |
---|---|
String |
getDefaultEncoding()
Gets the default encoding |
String |
getExtension()
The file extension that the processor is associated with, null if none. |
String |
getName()
Get the name of the processor |
boolean |
hasTemplate(String templatePath)
Determines if a template exists |
void |
init()
Inits the processor |
void |
process(String templatePath,
Object model,
Writer out)
Process a template against the supplied data model and write to the out. |
void |
processString(String templateString,
Object model,
Writer out)
Process a string template against the supplied data model and write to the out. |
void |
reset()
Reset the Template Processor |
void |
setDefaultEncoding(String defaultEncoding)
|
void |
setGroovyScriptProcessor(GroovyScriptProcessor groovyScriptProcessor)
Sets the groovy script processor |
Methods inherited from class org.springframework.extensions.webscripts.processor.AbstractTemplateProcessor |
---|
addProcessorModelExtensions, getSearchPath, getTemplateLoader, initLoaders, onApplicationEvent, register, setApplicationContext, setSearchPath |
Methods inherited from class org.springframework.extensions.webscripts.processor.BaseRegisterableTemplateProcessor |
---|
getTemplateProcessorRegistry, setTemplateProcessorRegistry |
Methods inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor |
---|
registerProcessorExtension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroovyTemplateProcessor()
Method Detail |
---|
public void setGroovyScriptProcessor(GroovyScriptProcessor groovyScriptProcessor)
groovyScriptProcessor
- public void setDefaultEncoding(String defaultEncoding)
defaultEncoding
- public String getDefaultEncoding()
TemplateProcessor
public void init()
BaseRegisterableTemplateProcessor
init
in class AbstractTemplateProcessor
public String getExtension()
Processor
public String getName()
Processor
public void process(String templatePath, Object model, Writer out)
TemplateProcessor
templatePath
- Template name/pathmodel
- Object model to process template againstout
- Writer object to send output toopublic void processString(String templateString, Object model, Writer out)
TemplateProcessor
templateString
- Template stringmodel
- Object model to process template againstout
- Writer object to send output toopublic void reset()
TemplateProcessor
public boolean hasTemplate(String templatePath)
TemplateProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |