Interface ClientBuilder
-
- All Known Implementing Classes:
AbstractNativeClientBuilder,HttpClientBuilder,NamedPipeClientBuilder,UnixSocketClientBuilder
public interface ClientBuilderA client builder know how to build HTTP clients- Since:
- 03/05/16
- Author:
- roland
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
buildPooledClient
org.apache.http.impl.client.CloseableHttpClient buildPooledClient() throws IOExceptionCreate a pooled client- Returns:
- an HTTP client
- Throws:
IOException
-
buildBasicClient
org.apache.http.impl.client.CloseableHttpClient buildBasicClient() throws IOExceptionCreate a basic client with a single connection. This is the client which should be used in long running threads- Returns:
- an HTTP client
- Throws:
IOException
-
-