public abstract class AbstractViewPlugin extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultExtension |
protected String |
templateLocationPrefix |
| Constructor and Description |
|---|
AbstractViewPlugin() |
AbstractViewPlugin(String templateLocationPrefix,
String defaultExtension) |
| Modifier and Type | Method and Description |
|---|---|
String |
render(String viewUrl,
Map<String,Object> model)
try to render template
|
String |
resolveView(String viewUrl,
Map<String,Object> model) |
void |
setTemplateLocationPrefix(String templateLocationPrefix) |
boolean |
supportedExtension(String extension)
if extension is supported
|
protected String templateLocationPrefix
protected String defaultExtension
public void setTemplateLocationPrefix(String templateLocationPrefix)
public boolean supportedExtension(String extension)
extension - resources extensionpublic final String resolveView(String viewUrl, Map<String,Object> model) throws Exception
ExceptionCopyright © 2023 flmelody. All rights reserved.