public class View extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
View.IViewBuilder
文件视图构建器接口
|
Constructor and Description |
---|
View() |
public static void registerViewBuilder(String fileSuffix, View.IViewBuilder viewBuilder)
fileSuffix
- 文件扩展名viewBuilder
- 文件视图对象构建器public static BinaryView binaryView(File targetFile) throws Exception
Exception
public static ForwardView forwardView(String path)
public static FreemarkerView freemarkerView(IWebMvc owner, String path)
public static FreemarkerView freemarkerView(String path)
public static FreemarkerView freemarkerView()
public static VelocityView velocityView(IWebMvc owner, String path)
public static VelocityView velocityView(String path)
public static VelocityView velocityView()
public static HtmlView htmlView(IWebMvc owner, String htmlFile) throws Exception
Exception
public static HttpStatusView httpStatusView(int status)
public static HttpStatusView httpStatusView(int status, String msg)
public static JspView jspView()
public static NullView nullView()
public static RedirectView redirectView(String path)
Copyright © 2022. All rights reserved.