|
||||||||||
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.PHPTemplateProcessor
public class PHPTemplateProcessor
PHP Template Processor for Web Framework
Field Summary | |
---|---|
static String |
ALF_AVAILABLE
Key to value found in $_SERVER indicating that the Alfresco API is available |
Fields inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor |
---|
processorExtensions |
Constructor Summary | |
---|---|
PHPTemplateProcessor()
Constructor |
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 template)
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 template,
Object model,
Writer out)
Process a string template against the supplied data model and write to the out. |
void |
registerProcessorExtension(ProcessorExtension processorExtension)
Registers a processor extension with the processor |
void |
reset()
Reset the Template Processor |
void |
setDefaultEncoding(String defaultEncoding)
|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALF_AVAILABLE
Constructor Detail |
---|
public PHPTemplateProcessor()
Method Detail |
---|
public void setDefaultEncoding(String defaultEncoding)
defaultEncoding
- public String getDefaultEncoding()
TemplateProcessor
public String getExtension()
Processor
public String getName()
Processor
public void init()
BaseRegisterableTemplateProcessor
init
in class AbstractTemplateProcessor
public void registerProcessorExtension(ProcessorExtension processorExtension)
Processor
registerProcessorExtension
in interface Processor
registerProcessorExtension
in class BaseProcessor
processorExtension
- the process extensionProcessor.registerProcessorExtension(org.springframework.extensions.surf.core.processor.ProcessorExtension)
public boolean hasTemplate(String template)
TemplateProcessor
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 template, Object model, Writer out)
TemplateProcessor
template
- Template stringmodel
- Object model to process template againstout
- Writer object to send output toopublic void reset()
TemplateProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |