public class HtmlView extends AbstractView
Modifier and Type | Field and Description |
---|---|
static String |
FILE_SUFFIX |
attributes, baseViewPath, contentType, response
DEFAULT_CHARSET
Modifier and Type | Method and Description |
---|---|
static HtmlView |
bind(File htmlFile) |
static HtmlView |
bind(IWebMvc owner,
String htmlFile) |
static HtmlView |
bind(String content) |
protected void |
doRenderView()
视图渲染具体操作
|
void |
render(OutputStream output)
视图渲染动作
|
addAttribute, addAttributes, addDateHeader, addHeader, addIntHeader, buildUrl, doProcessPath, doViewInit, getAttribute, getAttributes, getBaseViewPath, getContentType, render, setContentType
public static final String FILE_SUFFIX
public HtmlView(String content)
content
- 输出HTML内容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.