public class ResponseUtils
extends java.lang.Object
| Constructor and Description |
|---|
ResponseUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getEntity(org.apache.http.HttpResponse response) |
static com.google.gson.JsonElement |
getEntityAsJson(org.apache.http.HttpResponse response) |
static com.google.gson.JsonArray |
getEntityAsJsonArray(org.apache.http.HttpResponse response) |
static com.google.gson.JsonObject |
getEntityAsJsonObject(org.apache.http.HttpResponse response) |
static int |
getStatus(org.apache.http.HttpResponse response) |
public static int getStatus(org.apache.http.HttpResponse response)
public static java.lang.String getEntity(org.apache.http.HttpResponse response)
throws java.io.IOException
java.io.IOExceptionpublic static com.google.gson.JsonElement getEntityAsJson(org.apache.http.HttpResponse response)
throws java.io.IOException
java.io.IOExceptionpublic static com.google.gson.JsonObject getEntityAsJsonObject(org.apache.http.HttpResponse response)
throws java.io.IOException
java.io.IOExceptionpublic static com.google.gson.JsonArray getEntityAsJsonArray(org.apache.http.HttpResponse response)
throws java.io.IOException
java.io.IOException