public abstract class AbstractNativeClientBuilder extends Object implements ClientBuilder
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jkube.kit.common.KitLogger |
log |
protected String |
path |
protected org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> |
registry |
Constructor and Description |
---|
AbstractNativeClientBuilder(String path,
int maxConnections,
org.eclipse.jkube.kit.common.KitLogger logger) |
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
|
protected abstract org.apache.http.conn.socket.ConnectionSocketFactory |
getConnectionSocketFactory() |
protected abstract String |
getProtocol() |
protected final org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> registry
protected final String path
protected final org.eclipse.jkube.kit.common.KitLogger log
public AbstractNativeClientBuilder(String path, int maxConnections, org.eclipse.jkube.kit.common.KitLogger logger)
protected abstract org.apache.http.conn.socket.ConnectionSocketFactory getConnectionSocketFactory()
protected abstract String getProtocol()
public org.apache.http.impl.client.CloseableHttpClient buildPooledClient()
ClientBuilder
buildPooledClient
in interface ClientBuilder
public org.apache.http.impl.client.CloseableHttpClient buildBasicClient() throws IOException
ClientBuilder
buildBasicClient
in interface ClientBuilder
IOException
- IO ExceptionCopyright © 2020. All rights reserved.