public abstract class OkResponseListener
extends java.lang.Object
| 构造器和说明 |
|---|
OkResponseListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
handleAllFailureSituation(Call call,
int resultCode)
以上所有的出错时,统一再一次会执行此方法
|
void |
handleJsonError(Call call,
Response response,
JSONObject json) |
protected void |
handleJsonOther(Call call,
Response response,
JSONObject json)
其它不在返回结果列表中的代码
|
void |
handleJsonSuccess(Call call,
Response response,
JSONObject json) |
protected void |
handleJsonVerifyError(Call call,
Response response,
JSONObject json)
验证错误
|
protected void |
handleNoServerNetwork(Call call,
boolean isCanceled)
网络错误
|
protected void |
handleParseError(Call call,
java.lang.String responseResult)
解析Json出错
|
protected void |
handleResponseCodeError(Call call,
Response response)
网络返回代码Code是错误的代码
|
protected void |
handleResponseFailure(Call call,
Response response,
java.lang.Exception e)
处理返回结果时,出现异常
|
protected void |
handleSuccessInBackground(Call call,
JSONObject json)
成功时,进行线程中处理操作
|
protected void handleJsonVerifyError(Call call,
Response response,
JSONObject json)
throws java.lang.Exception
java.lang.Exceptionprotected void handleJsonOther(Call call,
Response response,
JSONObject json)
throws java.lang.Exception
java.lang.Exceptionprotected void handleParseError(Call call,
java.lang.String responseResult)
throws java.lang.Exception
call - responseResult - java.lang.Exceptionprotected void handleNoServerNetwork(Call call,
boolean isCanceled)
throws java.lang.Exception
call - isCanceled - java.lang.Exceptionprotected void handleResponseCodeError(Call call,
Response response)
throws java.lang.Exception
call - response - java.lang.Exceptionprotected void handleResponseFailure(Call call,
Response response,
java.lang.Exception e)
throws java.lang.Exception
call - response - e - java.lang.Exceptionprotected void handleAllFailureSituation(Call call,
int resultCode)
throws java.lang.Exception
call - resultCode - java.lang.Exceptionprotected void handleSuccessInBackground(Call call,
JSONObject json)
throws java.lang.Exception
call - json - java.lang.Exceptionpublic void handleJsonSuccess(Call call,
Response response,
JSONObject json)
throws java.lang.Exception
java.lang.Exceptionpublic void handleJsonError(Call call,
Response response,
JSONObject json)
throws java.lang.Exception
java.lang.Exception