public static JsonObject httpGet(CloseableHttpClient httpClient,URI uri) throws ClientProtocolException, IOException, IllegalStateException, HttpException {
  HttpGet httpGet=new HttpGet(uri);
  try (CloseableHttpResponse response=httpClient.execute(httpGet)){
    return UtilityFunctions.parseHTTPResponse(response,uri.toString());
  }
 catch (  ClientProtocolException e) {
    throw e;
  }
}

public static JsonObject httpGet ( CloseableHttpClient httpClient , URI uri ) throws ClientProtocolException , IOException , IllegalStateException , HttpException { HttpGet httpGet = new HttpGet ( uri ) ; try ( CloseableHttpResponse response = httpClient . execute ( httpGet ) ) { return UtilityFunctions . parseHTTPResponse ( response , uri . toString ( ) ) ; } catch ( ClientProtocolException e ) { throw e ; } }
makes http get request < p > this makes http get requests to the url provided .
