Class HttpUtils
java.lang.Object
dev.botcity.maestro_sdk.util.http.HttpUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static byte[]
httpGetByteArray
(String url) static byte[]
httpGetBytes
(String url, String... params) Deprecated.static byte[]
httpGetFile
(String url, String... params) static String
httpGetString
(String url) static String
static String
static String
httpPostJson
(String url, String json)
-
Constructor Details
-
HttpUtils
public HttpUtils()
-
-
Method Details
-
httpGetBytes
Deprecated. -
httpGetString
-
httpGetFile
public static byte[] httpGetFile(String url, String... params) throws org.apache.http.client.ClientProtocolException, IOException - Throws:
org.apache.http.client.ClientProtocolException
IOException
-
httpGetByteArray
-
httpPost
public static String httpPost(String url, String... params) throws org.apache.http.client.ClientProtocolException, IOException - Throws:
org.apache.http.client.ClientProtocolException
IOException
-
httpGet
-
httpPost
public static String httpPost(String url, Map<String, String> nameValuePairParameters) throws org.apache.http.client.ClientProtocolException, IOException- Throws:
org.apache.http.client.ClientProtocolException
IOException
-
httpPostJson
public static String httpPostJson(String url, String json) throws org.apache.http.client.ClientProtocolException, IOException - Throws:
org.apache.http.client.ClientProtocolException
IOException
-