public class FreemarkerView extends AbstractView
Modifier and Type | Field and Description |
---|---|
static String |
FILE_SUFFIX |
attributes, baseViewPath, contentType, response
DEFAULT_CHARSET
Constructor and Description |
---|
FreemarkerView() |
FreemarkerView(IWebMvc owner,
String path)
构造器
|
FreemarkerView(String path) |
Modifier and Type | Method and Description |
---|---|
static FreemarkerView |
bind() |
static FreemarkerView |
bind(IWebMvc owner,
String path) |
static FreemarkerView |
bind(String path) |
protected void |
doRenderView()
视图渲染具体操作
|
protected void |
doViewInit(IWebMvc owner)
初始化配置参数(全局)
|
freemarker.template.Configuration |
getEngineConfig() |
void |
render(OutputStream output)
视图渲染动作
|
addAttribute, addAttributes, addDateHeader, addHeader, addIntHeader, buildUrl, doProcessPath, getAttribute, getAttributes, getBaseViewPath, getContentType, render, setContentType
public static final String FILE_SUFFIX
public FreemarkerView(IWebMvc owner, String path)
owner
- 所属MVC框架管理器path
- FTL文件路径public FreemarkerView()
public FreemarkerView(String path)
public static FreemarkerView bind()
public static FreemarkerView bind(String path)
public static FreemarkerView bind(IWebMvc owner, String path)
public freemarker.template.Configuration getEngineConfig()
protected void doViewInit(IWebMvc owner)
AbstractView
doViewInit
in class AbstractView
owner
- 所属WebMVC框架管理器protected void doRenderView() throws Exception
AbstractView
doRenderView
in class AbstractView
Exception
- 抛出任何可能异常public void render(OutputStream output) throws Exception
IView
render
in interface IView
render
in class AbstractView
output
- 视图渲染指定输出流Exception
- 抛出任何可能异常Copyright © 2022. All rights reserved.