|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.bastengao.struts2.freeroute.Results
public class Results
生成各种常用返回结果
| 构造方法摘要 | |
|---|---|
Results()
|
|
| 方法摘要 | |
|---|---|
static ChainResult |
chain()
chain result |
static String |
dispatcher(String location)
dispatcher result |
static String |
freemarker(String location)
freemarker result, 可自动补全后缀 |
static String |
ftl(String location)
freemarker result, alias #freemarker. |
static String |
html(String location)
html result. |
static HttpHeaderResult |
httpHeader()
http header result |
static JsonResult |
json()
json result |
static String |
jsp(String location)
jsp result. |
static String |
padEnd(String source,
String suffix)
自动补全后缀. |
static String |
redirect(String location)
redirect result |
static String |
result(String resultType)
只返回类型. |
static String |
result(String resultType,
String location)
快速构造返回结果 |
static StreamResult |
stream()
stream result |
static String |
velocity(String location)
velocity result, 可自动补全后缀 |
static String |
vm(String location)
velocity result, alias #velocity |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public Results()
| 方法详细信息 |
|---|
public static String html(String location)
location - 页面路径
public static String jsp(String location)
location - 页面路径
public static String dispatcher(String location)
location - 页面路径
public static String ftl(String location)
location - 页面路径
public static String freemarker(String location)
location - 页面路径
public static String vm(String location)
location - 页面路径
public static String velocity(String location)
location - 页面路径
public static String redirect(String location)
location - 重定向目标
public static String result(String resultType)
resultType - 返回类型
public static String result(String resultType,
String location)
resultType - 返回类型location - 路径
public static String padEnd(String source,
String suffix)
source - suffix -
public static JsonResult json()
public static ChainResult chain()
public static StreamResult stream()
public static HttpHeaderResult httpHeader()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||