public class HttpClientHelpers
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientHelpers.AbstractBasicResponseConsumer<T> |
static class |
HttpClientHelpers.AlgoResponseHandler |
static class |
HttpClientHelpers.JsonDeserializeResponseHandler<T> |
| Modifier and Type | Method and Description |
|---|---|
static AlgoResponse |
jsonToAlgoResponse(com.google.gson.JsonElement json) |
static com.google.gson.JsonElement |
parseResponseJson(org.apache.http.HttpResponse response) |
static void |
throwIfJsonHasError(com.google.gson.JsonElement json) |
static void |
throwIfNotOk(org.apache.http.HttpResponse response) |
public static AlgoResponse jsonToAlgoResponse(com.google.gson.JsonElement json) throws APIException
APIExceptionpublic static void throwIfNotOk(org.apache.http.HttpResponse response)
throws APIException
APIExceptionpublic static void throwIfJsonHasError(com.google.gson.JsonElement json)
throws APIException
APIExceptionpublic static com.google.gson.JsonElement parseResponseJson(org.apache.http.HttpResponse response)
throws APIException
APIException