Class AbstractNativeClientBuilder
- java.lang.Object
-
- io.fabric8.maven.docker.access.hc.util.AbstractNativeClientBuilder
-
- All Implemented Interfaces:
ClientBuilder
- Direct Known Subclasses:
NamedPipeClientBuilder,UnixSocketClientBuilder
public abstract class AbstractNativeClientBuilder extends Object implements ClientBuilder
Base class for all clients which access Docker natively- Since:
- 08/08/16
- Author:
- roland
-
-
Constructor Summary
Constructors Constructor Description AbstractNativeClientBuilder(String path, int maxConnections, Logger logger)
-
Method Summary
All Methods Instance Methods Abstract 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 clientprotected abstract org.apache.http.conn.socket.ConnectionSocketFactorygetConnectionSocketFactory()protected abstract StringgetProtocol()
-
-
-
Method Detail
-
getConnectionSocketFactory
protected abstract org.apache.http.conn.socket.ConnectionSocketFactory getConnectionSocketFactory()
-
getProtocol
protected abstract String getProtocol()
-
buildPooledClient
public org.apache.http.impl.client.CloseableHttpClient buildPooledClient()
Description copied from interface:ClientBuilderCreate a pooled client- Specified by:
buildPooledClientin interfaceClientBuilder- Returns:
- an HTTP client
-
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
-
-