public interface ResponseListener
Modifier and Type | Method and Description |
---|---|
void |
onFailure(Response response,
java.lang.Throwable t,
JSONObject extendedInfo)
This method will be called in the following cases:
There is no response from the server.
The status from the server response is in the 400 or 500 ranges.
There is an operational failure such as: authentication failure, data validation failure, or custom failure.
|
void |
onSuccess(Response response)
This method will be called only when a response from the server has been received with a status
in the 200 range.
|
void onSuccess(Response response)
response
- the server responsevoid onFailure(Response response, java.lang.Throwable t, JSONObject extendedInfo)
response
- Contains detail regarding why the Http request failed. May be null if the request did not reach the servert
- Exception that could have caused the request to fail. null if no Exception thrown.extendedInfo
- Contains details regarding operational failure. null if no operational failure occurred.