public class CommonsHttpClientImpl extends Object implements HttpClient
| Modifier and Type | Class and Description |
|---|---|
static interface |
CommonsHttpClientImpl.CloseableHttpClientBuilder |
| Constructor and Description |
|---|
CommonsHttpClientImpl(Map<String,String> headers,
CommonsHttpClientImpl.CloseableHttpClientBuilder clientBuilder) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
sendDeleteRequest(String url,
String json) |
HttpResponse |
sendGetRequest(String url) |
HttpResponse |
sendHeadRequest(String url) |
HttpResponse |
sendPatchRequest(String url,
String json) |
HttpResponse |
sendPostRequest(String url,
String json) |
HttpResponse |
sendPutRequest(String url,
String json) |
public CommonsHttpClientImpl(Map<String,String> headers, CommonsHttpClientImpl.CloseableHttpClientBuilder clientBuilder)
public HttpResponse sendGetRequest(String url) throws Exception
sendGetRequest in interface HttpClientExceptionpublic HttpResponse sendPostRequest(String url, String json) throws Exception
sendPostRequest in interface HttpClientExceptionpublic HttpResponse sendPutRequest(String url, String json) throws Exception
sendPutRequest in interface HttpClientExceptionpublic HttpResponse sendPatchRequest(String url, String json) throws Exception
sendPatchRequest in interface HttpClientExceptionpublic HttpResponse sendDeleteRequest(String url, String json) throws Exception
sendDeleteRequest in interface HttpClientExceptionpublic HttpResponse sendHeadRequest(String url) throws Exception
sendHeadRequest in interface HttpClientExceptionCopyright © 2022 SeMI Technologies B.V.. All rights reserved.