public class HttpClient extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
delete(String path) |
com.google.gson.JsonObject |
get(String path) |
<T> T |
get(String path,
Class<T> clazz) |
String |
getPlain(String path) |
int |
post(String path) |
com.google.gson.JsonObject |
post(String path,
com.google.gson.JsonObject data) |
com.google.gson.JsonObject |
post(String path,
String name,
boolean value) |
com.google.gson.JsonObject |
post(String path,
String name,
float value) |
com.google.gson.JsonObject |
post(String path,
String name,
String value) |
public com.google.gson.JsonObject post(String path, String name, float value) throws IOException
IOExceptionpublic com.google.gson.JsonObject post(String path, String name, boolean value) throws IOException
IOExceptionpublic com.google.gson.JsonObject post(String path, String name, String value) throws IOException
IOExceptionpublic String getPlain(String path) throws IOException
IOExceptionpublic com.google.gson.JsonObject get(String path) throws IOException
IOExceptionpublic <T> T get(String path, Class<T> clazz) throws IOException
IOExceptionpublic int post(String path) throws IOException
IOExceptionpublic com.google.gson.JsonObject post(String path, com.google.gson.JsonObject data) throws IOException
IOExceptionpublic int delete(String path) throws IOException
IOExceptionCopyright © 2018. All rights reserved.