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) |
protected void |
handleResponseCodeError(Call call,
Response response) |
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
java.lang.Exceptionprotected void handleNoServerNetwork(Call call,
boolean isCanceled)
throws java.lang.Exception
java.lang.Exceptionprotected void handleResponseCodeError(Call call,
Response response)
throws java.lang.Exception
java.lang.Exceptionprotected void handleResponseFailure(Call call,
Response response,
java.lang.Exception e)
throws java.lang.Exception
java.lang.Exceptionprotected void handleAllFailureSituation(Call call,
int resultCode)
throws java.lang.Exception
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