public abstract class FastOut<T> extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
FastOut.Type |
限定符和类型 | 字段和说明 |
---|---|
protected String |
charset |
protected String |
contentType |
protected Object |
data |
protected String |
description |
private boolean |
logged |
protected Date |
outTime |
protected int |
status |
构造器和说明 |
---|
FastOut() |
限定符和类型 | 方法和说明 |
---|---|
static Class<? extends FastOut<?>> |
convertType(FastOut.Type type) |
String |
getCharset() |
String |
getContentType() |
Object |
getData() |
String |
getDescription() |
Date |
getOutTime() |
int |
getStatus() |
boolean |
isLogged() |
abstract void |
response(FastAction action)
响应数据
|
T |
setCharset(String charset) |
T |
setContentType(String contentType) |
T |
setData(Object data) |
T |
setDescription(String description) |
FastOut<?> |
setFieldValue(String fieldName,
Object fieldValue)
设置子类自定义的字段值
|
FastOut<?> |
setLogged(boolean logged) |
T |
setOutTime(Date outTime) |
T |
setStatus(int status) |
String |
toContentType(FastAction action) |
protected Object data
protected Date outTime
protected String contentType
protected String charset
protected String description
protected int status
private transient boolean logged
public abstract void response(FastAction action) throws Exception
action
- 控制器Exception
public FastOut<?> setFieldValue(String fieldName, Object fieldValue)
fieldName
- 字段名fieldValue
- 字段值public String toContentType(FastAction action)
public String getContentType()
public String getCharset()
public Object getData()
public Date getOutTime()
public int getStatus()
public T setStatus(int status)
public String getDescription()
public static Class<? extends FastOut<?>> convertType(FastOut.Type type)
public boolean isLogged()
public FastOut<?> setLogged(boolean logged)
Copyright © 2021. All rights reserved.