public class UniRestCallback
extends java.lang.Object
implements com.mashape.unirest.http.async.Callback<com.mashape.unirest.http.JsonNode>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MSG_REQUEST_HAS_BEEN_CANCELLED |
static java.lang.String |
MSG_REQUEST_HAS_FAILED |
static java.lang.String |
MSG_REQUEST_WAS_SUCCESSFUL |
| Constructor and Description |
|---|
UniRestCallback(UniRestEngine engine,
java.util.function.Consumer<BreinResult> callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled() |
void |
completed(com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> response) |
void |
failed(com.mashape.unirest.http.exceptions.UnirestException e) |
public static final java.lang.String MSG_REQUEST_HAS_FAILED
public static final java.lang.String MSG_REQUEST_HAS_BEEN_CANCELLED
public static final java.lang.String MSG_REQUEST_WAS_SUCCESSFUL
public UniRestCallback(UniRestEngine engine, java.util.function.Consumer<BreinResult> callback)
public void completed(com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> response)
completed in interface com.mashape.unirest.http.async.Callback<com.mashape.unirest.http.JsonNode>public void failed(com.mashape.unirest.http.exceptions.UnirestException e)
failed in interface com.mashape.unirest.http.async.Callback<com.mashape.unirest.http.JsonNode>public void cancelled()
cancelled in interface com.mashape.unirest.http.async.Callback<com.mashape.unirest.http.JsonNode>Copyright © Breinify - All Rights Reserved.