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