public interface HttpResponseCallback
| Modifier and Type | Method and Description |
|---|---|
void |
failure(java.lang.Exception exception) |
void |
success(java.lang.String responseBody) |
void success(java.lang.String responseBody)
responseBody - response to the successful HTTP request.
Successful is defined as requests with the response code
HttpURLConnection.HTTP_OK,
HttpURLConnection.HTTP_CREATED
or HttpURLConnection.HTTP_ACCEPTED.void failure(java.lang.Exception exception)
exception - error that caused the request to fail.