Class HttpUtils


  • public class HttpUtils
    extends Object
    Created by dsalhotra on 27/06/2017.
    • Constructor Detail

      • HttpUtils

        public HttpUtils()
    • 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)
      • executeDeleteRequest

        public static com.fasterxml.jackson.databind.JsonNode executeDeleteRequest​(org.apache.http.impl.client.CloseableHttpClient httpClient,
                                                                                   String url,
                                                                                   Map<String,​String> headers)