|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.TemplateProcessorRegistry
public class TemplateProcessorRegistry
Registry of Template Processors If no processors are registered, the default script processor is the freemarker processor.
| Constructor Summary | |
|---|---|
TemplateProcessorRegistry()
|
|
| Method Summary | |
|---|---|
String |
findValidTemplatePath(String path)
Returns a variation on the provided path that exists and is processable by one of the processors in this registry. |
protected TemplateProcessor |
getDefaultTemplateProcessor()
Gets the default template processor. |
String |
getExtensionForProcessor(TemplateProcessor templateProcessor)
Gets the extension for given processor. |
String[] |
getRegisteredExtensions()
Returns the extensions with registered processors |
TemplateProcessor |
getTemplateProcessor(String path)
Returns the best fit template processor for the given path If a template processor cannot be matched to the path, the default template processor will be returned. |
TemplateProcessor |
getTemplateProcessorByExtension(String extension)
Gets the template processor registered for the given extension |
void |
registerTemplateProcessor(TemplateProcessor templateProcessor)
Registers a template processor |
void |
registerTemplateProcessor(TemplateProcessor templateProcessor,
String extension,
String name)
Registers a template processor |
void |
reset()
Resets all of the registered template processors |
void |
setDefaultTemplateProcessor(String defaultTemplateProcessorName)
Sets the name of the default template processor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateProcessorRegistry()
| Method Detail |
|---|
public void setDefaultTemplateProcessor(String defaultTemplateProcessorName)
defaultTemplateProcessor - the name of the default template processorpublic void registerTemplateProcessor(TemplateProcessor templateProcessor)
templateProcessor - the template processor to register
public void registerTemplateProcessor(TemplateProcessor templateProcessor,
String extension,
String name)
templateProcessor - the template processor to registerextension - name - protected TemplateProcessor getDefaultTemplateProcessor()
public TemplateProcessor getTemplateProcessor(String path)
path - the path
public TemplateProcessor getTemplateProcessorByExtension(String extension)
extension - the extension
public String findValidTemplatePath(String path)
path - the path
public String[] getRegisteredExtensions()
public String getExtensionForProcessor(TemplateProcessor templateProcessor)
templateProcessor - the template processor
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||