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