public class HttpUtils extends Object
Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
executeDeleteRequest(org.apache.http.impl.client.CloseableHttpClient httpClient,
String url,
Map<String,String> headers) |
static String |
executeGetRequest(org.apache.http.impl.client.CloseableHttpClient httpClient,
String url,
Map<String,String> headers) |
static String |
executeHeadRequest(org.apache.http.impl.client.CloseableHttpClient httpClient,
String url,
Map<String,String> headers) |
static String |
executePostRequest(org.apache.http.impl.client.CloseableHttpClient httpClient,
String url,
String jsonData,
Map<String,String> headers) |
static String |
executePutRequest(org.apache.http.impl.client.CloseableHttpClient httpClient,
String url,
String jsonData,
Map<String,String> headers) |
static org.apache.http.impl.client.CloseableHttpClient |
initHttpClient(boolean trustAllCertificates,
org.apache.http.client.CredentialsProvider credentialsProvider) |
public static org.apache.http.impl.client.CloseableHttpClient initHttpClient(boolean trustAllCertificates, org.apache.http.client.CredentialsProvider credentialsProvider) throws IOException
IOException
public static String executeGetRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers) throws IOException
IOException
public static String executeHeadRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers) throws IOException
IOException
public static String executeDeleteRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers) throws IOException
IOException
public static String executePostRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, String jsonData, Map<String,String> headers) throws IOException
IOException
public static String executePutRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, String jsonData, Map<String,String> headers) throws IOException
IOException
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.