Class HttpUtils
- java.lang.Object
-
- org.apache.unomi.mailchimp.services.HttpUtils
-
public class HttpUtils extends Object
Created by dsalhotra on 27/06/2017.
-
-
Constructor Summary
Constructors Constructor Description HttpUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.JsonNode
executeDeleteRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers)
static com.fasterxml.jackson.databind.JsonNode
executeGetRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers, boolean allow404Response)
static com.fasterxml.jackson.databind.JsonNode
executePatchRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers, String body)
static com.fasterxml.jackson.databind.JsonNode
executePostRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers, String body)
static org.apache.http.impl.client.CloseableHttpClient
initHttpClient()
-
-
-
Method Detail
-
initHttpClient
public static org.apache.http.impl.client.CloseableHttpClient initHttpClient()
-
executePatchRequest
public static com.fasterxml.jackson.databind.JsonNode executePatchRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers, String body)
-
executePostRequest
public static com.fasterxml.jackson.databind.JsonNode executePostRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers, String body)
-
executeGetRequest
public static com.fasterxml.jackson.databind.JsonNode executeGetRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers, boolean allow404Response)
-
-