public class JDSFreemarkerManager extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONFIG_SERVLET_CONTEXT_KEY |
static String |
KEY_APPLICATION |
static String |
KEY_EXCEPTION |
static String |
KEY_JSP_TAGLIBS |
static String |
KEY_REQUEST_MODEL |
static String |
KEY_REQUEST_PARAMETER_MODEL |
static String |
KEY_SESSION_MODEL |
| 构造器和说明 |
|---|
JDSFreemarkerManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected JDSScopesHashModel |
buildScopesHashModel(freemarker.template.ObjectWrapper wrapper,
ValueStack stack) |
freemarker.template.SimpleHash |
buildTemplateModel(ValueStack stack,
freemarker.template.ObjectWrapper wrapper) |
protected freemarker.template.Configuration |
createConfiguration(String templatePath) |
freemarker.template.Configuration |
getConfiguration(String templatePath) |
protected freemarker.cache.TemplateLoader |
getTemplateLoader(String templatePath) |
protected void |
loadSettings(freemarker.template.Configuration configuration)
Load the settings from the /freemarker.properties file on the classpath
|
void |
setEncoding(String encoding) |
void |
setWrapperAltMap(String val) |
public void setEncoding(String encoding)
public void setWrapperAltMap(String val)
public final freemarker.template.Configuration getConfiguration(String templatePath) throws freemarker.template.TemplateException
freemarker.template.TemplateExceptionprotected JDSScopesHashModel buildScopesHashModel(freemarker.template.ObjectWrapper wrapper, ValueStack stack)
protected freemarker.cache.TemplateLoader getTemplateLoader(String templatePath)
protected freemarker.template.Configuration createConfiguration(String templatePath) throws freemarker.template.TemplateException
freemarker.template.TemplateExceptionprotected void loadSettings(freemarker.template.Configuration configuration)
for the definition of valid settingspublic freemarker.template.SimpleHash buildTemplateModel(ValueStack stack, freemarker.template.ObjectWrapper wrapper)
Copyright © 2023 onecode. All rights reserved.