Package org.apache.http.impl.nio.client
Class HttpAsyncClients
- java.lang.Object
-
- org.apache.http.impl.nio.client.HttpAsyncClients
-
public class HttpAsyncClients extends Object
Factory methods forCloseableHttpAsyncClient
andCloseableHttpPipeliningClient
instances.- Since:
- 4.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CloseableHttpAsyncClient
createDefault()
CreatesCloseableHttpAsyncClient
instance with default configuration.static CloseableHttpAsyncClient
createMinimal()
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only.static CloseableHttpAsyncClient
createMinimal(NHttpClientConnectionManager connManager)
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only.static CloseableHttpAsyncClient
createMinimal(NHttpClientConnectionManager connManager, boolean shared)
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only.static CloseableHttpAsyncClient
createMinimal(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor)
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only.static CloseableHttpPipeliningClient
createPipelining()
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution.static CloseableHttpPipeliningClient
createPipelining(NHttpClientConnectionManager connManager)
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution.static CloseableHttpPipeliningClient
createPipelining(NHttpClientConnectionManager connManager, boolean shared)
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution.static CloseableHttpPipeliningClient
createPipelining(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor)
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution.static CloseableHttpAsyncClient
createSystem()
CreatesCloseableHttpAsyncClient
instance with default configuration based on ssytem properties.static HttpAsyncClientBuilder
custom()
Creates builder object for construction of customCloseableHttpAsyncClient
instances.
-
-
-
Method Detail
-
custom
public static HttpAsyncClientBuilder custom()
Creates builder object for construction of customCloseableHttpAsyncClient
instances.
-
createDefault
public static CloseableHttpAsyncClient createDefault()
CreatesCloseableHttpAsyncClient
instance with default configuration.
-
createSystem
public static CloseableHttpAsyncClient createSystem()
CreatesCloseableHttpAsyncClient
instance with default configuration based on ssytem properties.
-
createMinimal
public static CloseableHttpAsyncClient createMinimal()
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only. This client does not support HTTP state management, authentication and automatic redirects.
-
createMinimal
public static CloseableHttpAsyncClient createMinimal(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor)
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only. This client does not support HTTP state management, authentication and automatic redirects.
-
createMinimal
public static CloseableHttpAsyncClient createMinimal(NHttpClientConnectionManager connManager)
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only. This client does not support HTTP state management, authentication and automatic redirects.
-
createMinimal
public static CloseableHttpAsyncClient createMinimal(NHttpClientConnectionManager connManager, boolean shared)
CreatesCloseableHttpAsyncClient
instance that supports esential HTTP protocol aspects only. This client does not support HTTP state management, authentication and automatic redirects.Please note that clients with a shared connection manager make no attempts to control its life cycle and dealocation of resources. It is a responibility of the caller to ensure that the shared connection manager is properly started and shut down when no longer needed.
- Since:
- 4.1
-
createPipelining
public static CloseableHttpPipeliningClient createPipelining()
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution. This client does not support authentication and automatic redirects.- Since:
- 4.1
-
createPipelining
public static CloseableHttpPipeliningClient createPipelining(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor)
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution. This client does not support authentication and automatic redirects.- Since:
- 4.1
-
createPipelining
public static CloseableHttpPipeliningClient createPipelining(NHttpClientConnectionManager connManager)
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution. This client does not support authentication and automatic redirects.- Since:
- 4.1
-
createPipelining
public static CloseableHttpPipeliningClient createPipelining(NHttpClientConnectionManager connManager, boolean shared)
CreatesCloseableHttpPipeliningClient
instance that supports pipelined request execution. This client does not support authentication and automatic redirects.Please note that clients with a shared connection manager make no attempts to control its life cycle and dealocation of resources. It is a responibility of the caller to ensure that the shared connection manager is properly started and shut down when no longer needed.
- Since:
- 4.1
-
-