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
IOExceptionpublic static String executeGetRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers) throws IOException
IOExceptionpublic static String executeHeadRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers) throws IOException
IOExceptionpublic static String executeDeleteRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, Map<String,String> headers) throws IOException
IOExceptionpublic static String executePostRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, String jsonData, Map<String,String> headers) throws IOException
IOExceptionpublic static String executePutRequest(org.apache.http.impl.client.CloseableHttpClient httpClient, String url, String jsonData, Map<String,String> headers) throws IOException
IOExceptionCopyright © 2014–2023 Apache Software Foundation. All rights reserved.