public abstract class DefaultAppBaseService extends AbstractBaseService
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.apache.commons.configuration.Configuration |
config
配置项读取类
|
protected static String |
encoding
xml 或 json 响应的默认编码
|
EXCEPTION_MSG, logDATA_TYPE_HTML, DATA_TYPE_JSON, DATA_TYPE_XML| 构造器和说明 |
|---|
DefaultAppBaseService() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.commons.configuration.Configuration |
getConfig() |
String |
getContentType()
返回数据 ContentType: html ?
|
protected String |
getJsonMsg(Boolean isSuccess,
String msg)
返回 json 格式的成功或错误信息
|
JsonRender |
getJsonRender()
返回转换 json 工具对象
|
protected String |
getXmlMsg(Boolean isSuccess,
String msg)
返回 chartXML 格式的成功或错误信息
|
XmlRender |
getXmlRender()
返回转换 xml 的工具对象
|
fileExists, getFileName, handleRequest, handleRequest, handleRequest, handleRequestprotected static String encoding
protected static org.apache.commons.configuration.Configuration config
public static org.apache.commons.configuration.Configuration getConfig()
public XmlRender getXmlRender()
public JsonRender getJsonRender()
protected String getJsonMsg(Boolean isSuccess, String msg)
isSuccess - true 表示成功消息 false 表示错误消息msg - protected String getXmlMsg(Boolean isSuccess, String msg)
isSuccess - true 表示成功消息 false 表示错误消息msg - public String getContentType()
DataServicegetContentType 在接口中 DataServicegetContentType 在接口中 DownloadServicegetContentType 在接口中 UploadServicegetContentType 在类中 AbstractBaseServiceCopyright © 2014. All Rights Reserved.