public class TextView extends AbstractView
attributes, baseViewPath, contentType, responseDEFAULT_CHARSET| Constructor and Description |
|---|
TextView(String content)
构造器
|
TextView(String content,
String contentType)
构造器
|
| Modifier and Type | Method and Description |
|---|---|
static TextView |
bind(String content) |
protected void |
doRenderView()
视图渲染具体操作
|
void |
render(OutputStream output)
视图渲染动作
|
addAttribute, addAttributes, addDateHeader, addHeader, addIntHeader, buildUrl, doProcessPath, doViewInit, getAttribute, getAttributes, getBaseViewPath, getContentType, render, setContentTypepublic TextView(String content)
content - 输出文本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.