Class HttpClientBuilder
- java.lang.Object
-
- io.fabric8.maven.docker.access.hc.http.HttpClientBuilder
-
- All Implemented Interfaces:
ClientBuilder
public class HttpClientBuilder extends Object implements ClientBuilder
- Since:
- 05/06/15
- Author:
- roland
-
-
Constructor Summary
Constructors Constructor Description HttpClientBuilder(String certPath, int maxConnections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.impl.client.CloseableHttpClientbuildBasicClient()Create a basic client with a single connection.org.apache.http.impl.client.CloseableHttpClientbuildPooledClient()Create a pooled client
-
-
-
Constructor Detail
-
HttpClientBuilder
public HttpClientBuilder(String certPath, int maxConnections)
-
-
Method Detail
-
buildPooledClient
public org.apache.http.impl.client.CloseableHttpClient buildPooledClient() throws IOExceptionDescription copied from interface:ClientBuilderCreate a pooled client- Specified by:
buildPooledClientin interfaceClientBuilder- Returns:
- an HTTP client
- Throws:
IOException
-
buildBasicClient
public org.apache.http.impl.client.CloseableHttpClient buildBasicClient() throws IOExceptionDescription copied from interface:ClientBuilderCreate a basic client with a single connection. This is the client which should be used in long running threads- Specified by:
buildBasicClientin interfaceClientBuilder- Returns:
- an HTTP client
- Throws:
IOException
-
-