public class RestEasy extends Object
Constructor and Description |
---|
RestEasy() |
Modifier and Type | Method and Description |
---|---|
static String |
convertStreamToString(InputStream is) |
static void |
doDelete(String url) |
static JSONObject |
doGet(String url) |
static HttpResponse |
doPost(String url,
JSONObject c) |
static HttpResponse |
doPut(String url,
JSONObject c) |
public static HttpResponse doPost(String url, JSONObject c) throws ClientProtocolException, IOException
ClientProtocolException
IOException
public static HttpResponse doPut(String url, JSONObject c) throws ClientProtocolException, IOException
ClientProtocolException
IOException
public static void doDelete(String url) throws ClientProtocolException, IOException
ClientProtocolException
IOException
public static JSONObject doGet(String url) throws ClientProtocolException, IOException, JSONException
public static String convertStreamToString(InputStream is)