public class FreemarkerConfig extends Object
| Constructor and Description |
|---|
FreemarkerConfig(HttpConfig httpConfig,
ModelGenerator modelGenerator,
String[] suffixes,
ConfigurationCreater configurationCreater) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDomainConfiguration(String domain,
String pageRoot) |
freemarker.template.Configuration |
getConfiguration(HttpRequest request) |
ModelGenerator |
getModelGenerator() |
String[] |
getSuffixes() |
void |
setConfiguration(freemarker.template.Configuration configuration) |
void |
setModelGenerator(ModelGenerator modelGenerator) |
void |
setSuffixes(String[] suffixes) |
public FreemarkerConfig(HttpConfig httpConfig, ModelGenerator modelGenerator, String[] suffixes, ConfigurationCreater configurationCreater) throws IOException
IOExceptionpublic freemarker.template.Configuration getConfiguration(HttpRequest request)
request - public void addDomainConfiguration(String domain, String pageRoot) throws IOException
domain - pageRoot - IOExceptionpublic void setConfiguration(freemarker.template.Configuration configuration)
public ModelGenerator getModelGenerator()
public void setModelGenerator(ModelGenerator modelGenerator)
public String[] getSuffixes()
public void setSuffixes(String[] suffixes)
suffixes - the suffixes to setCopyright © 2021. All rights reserved.