public class ClientUtils extends Object
| Constructor and Description |
|---|
ClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkReply(com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> res,
String url) |
static org.json.JSONObject |
get(String url) |
static com.mashape.unirest.http.JsonNode |
post(String url,
org.json.JSONObject json) |
static void |
unirestCrash(com.mashape.unirest.http.exceptions.UnirestException e) |
public static com.mashape.unirest.http.JsonNode post(String url, org.json.JSONObject json)
public static org.json.JSONObject get(String url)
public static void checkReply(com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> res,
String url)
public static void unirestCrash(com.mashape.unirest.http.exceptions.UnirestException e)
Copyright © 2019. All rights reserved.