Class HttpUtils

java.lang.Object
dev.botcity.maestro_sdk.util.http.HttpUtils

public class HttpUtils extends Object
  • Constructor Details

    • HttpUtils

      public HttpUtils()
  • Method Details

    • httpGetBytes

      @Deprecated public static byte[] httpGetBytes(String url, String... params)
      Deprecated.
    • httpGetString

      public static String httpGetString(String url)
    • httpGetFile

      public static byte[] httpGetFile(String url, String... params) throws org.apache.http.client.ClientProtocolException, IOException
      Throws:
      org.apache.http.client.ClientProtocolException
      IOException
    • httpGetByteArray

      public static byte[] httpGetByteArray(String url)
    • httpPost

      public static String httpPost(String url, String... params) throws org.apache.http.client.ClientProtocolException, IOException
      Throws:
      org.apache.http.client.ClientProtocolException
      IOException
    • httpGet

      public static String httpGet(String url, Map<String,String> nameValuePairParameters)
    • 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