public class HttpClientBuilder extends Object implements ClientBuilder
Constructor and Description |
---|
HttpClientBuilder(String certPath,
int maxConnections) |
Modifier and Type | Method and Description |
---|---|
org.apache.http.impl.client.CloseableHttpClient |
buildBasicClient()
Create a basic client with a single connection.
|
org.apache.http.impl.client.CloseableHttpClient |
buildPooledClient()
Create a pooled client
|
public HttpClientBuilder(String certPath, int maxConnections)
public org.apache.http.impl.client.CloseableHttpClient buildPooledClient() throws IOException
ClientBuilder
buildPooledClient
in interface ClientBuilder
IOException
public org.apache.http.impl.client.CloseableHttpClient buildBasicClient() throws IOException
ClientBuilder
buildBasicClient
in interface ClientBuilder
IOException
Copyright © 2020. All rights reserved.