|
||||||||||
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.FTLTemplateProcessor
public class FTLTemplateProcessor
FTL Template Processor for Alfresco Web Framework
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor |
---|
processorExtensions |
Constructor Summary | |
---|---|
FTLTemplateProcessor()
|
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 |
protected void |
initConfig()
Initialise FreeMarker Configuration |
void |
process(String template,
Object model,
Writer out)
Process a template against the supplied data model and write to the out. |
void |
processString(String template,
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 |
setCacheSize(int cacheSize)
|
void |
setDefaultEncoding(String defaultEncoding)
|
void |
setUpdateDelay(int updateDelay)
|
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 FTLTemplateProcessor()
Method Detail |
---|
public void setDefaultEncoding(String defaultEncoding)
defaultEncoding
- public String getDefaultEncoding()
TemplateProcessor
public void setUpdateDelay(int updateDelay)
updateDelay
- the time in seconds between checks on the modified date for cached templatespublic void setCacheSize(int cacheSize)
cacheSize
- the size of the MRU template cache, default is 256public void init()
BaseRegisterableTemplateProcessor
init
in class AbstractTemplateProcessor
public String getExtension()
Processor
public String getName()
Processor
public void process(String template, Object model, Writer out)
TemplateProcessor
template
- Template name/pathmodel
- Object model to process template againstout
- Writer object to send output toopublic void processString(String template, Object model, Writer out)
TemplateProcessor
template
- Template stringmodel
- Object model to process template againstout
- Writer object to send output toopublic void reset()
TemplateProcessor
public boolean hasTemplate(String templatePath)
TemplateProcessor
protected void initConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |