public abstract class AbstractNativeClientBuilder extends Object implements ClientBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
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,
Logger 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 Logger log
protected abstract org.apache.http.conn.socket.ConnectionSocketFactory getConnectionSocketFactory()
protected abstract String getProtocol()
public org.apache.http.impl.client.CloseableHttpClient buildPooledClient()
ClientBuilderbuildPooledClient in interface ClientBuilderpublic org.apache.http.impl.client.CloseableHttpClient buildBasicClient()
throws IOException
ClientBuilderbuildBasicClient in interface ClientBuilderIOExceptionCopyright © 2019. All rights reserved.