public abstract class BaseMarketApiResponse extends java.lang.Object implements MarketApiResponse
DefaultMarketApiResponse
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
RES_APP_KEY |
static java.lang.String |
RES_APP_SECRET |
static java.lang.String |
RES_CODE |
static java.lang.String |
RES_DATA |
static java.lang.String |
RES_MSG |
static java.lang.String |
RES_STATUS |
static java.lang.String |
RES_STATUS_FAILED |
static java.lang.String |
RES_STATUS_PART |
static java.lang.String |
RES_STATUS_SUCCESS |
protected java.lang.String |
response |
构造器和说明 |
---|
BaseMarketApiResponse() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getResponse()
获取响应
|
void |
setResponse(java.lang.String response)
设置响应
|
boolean |
shouldRecord()
响应结果是否需要记录日志(根据httpcode判断)
|
public static final java.lang.String RES_STATUS
public static final java.lang.String RES_MSG
public static final java.lang.String RES_DATA
public static final java.lang.String RES_APP_KEY
public static final java.lang.String RES_APP_SECRET
public static final java.lang.String RES_STATUS_SUCCESS
public static final java.lang.String RES_CODE
public static final java.lang.String RES_STATUS_FAILED
public static final java.lang.String RES_STATUS_PART
protected java.lang.String response
public java.lang.String getResponse()
MarketApiResponse
getResponse
在接口中 MarketApiResponse
public void setResponse(java.lang.String response)
MarketApiResponse
setResponse
在接口中 MarketApiResponse
response
- 响应public boolean shouldRecord()