Package io.pdfapi.client.http
Class ApacheHttpClient
java.lang.Object
io.pdfapi.client.http.AbstractHttpClient
io.pdfapi.client.http.ApacheHttpClient
- All Implemented Interfaces:
HttpClient
-
Constructor Summary
ConstructorsConstructorDescriptionApacheHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected CompletableFuture<HttpResponse> executeGet(String url, Map<String, String> headers) protected CompletableFuture<HttpResponse> protected CompletableFuture<HttpResponse> executePost(String url, Map<String, String> headers, String fileName, InputStream content, String contentType, String partName) Methods inherited from class io.pdfapi.client.http.AbstractHttpClient
close, get, post, post
-
Constructor Details
-
ApacheHttpClient
public ApacheHttpClient() -
ApacheHttpClient
public ApacheHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
-
-
Method Details
-
executePost
protected CompletableFuture<HttpResponse> executePost(String url, Map<String, String> headers, String jsonBody) - Specified by:
executePostin classAbstractHttpClient
-
executePost
protected CompletableFuture<HttpResponse> executePost(String url, Map<String, String> headers, String fileName, InputStream content, String contentType, String partName) - Specified by:
executePostin classAbstractHttpClient
-
executeGet
- Specified by:
executeGetin classAbstractHttpClient
-
closeInternal
protected void closeInternal()- Specified by:
closeInternalin classAbstractHttpClient
-