Class HttpAsyncClients
java.lang.Object
org.apache.http.impl.nio.client.HttpAsyncClients
Factory methods for
CloseableHttpAsyncClient and
CloseableHttpPipeliningClient instances.- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableHttpAsyncClientCreatesCloseableHttpAsyncClientinstance with default configuration.static CloseableHttpAsyncClientCreatesCloseableHttpAsyncClientinstance that supports esential HTTP protocol aspects only.static CloseableHttpAsyncClientcreateMinimal(NHttpClientConnectionManager connManager) CreatesCloseableHttpAsyncClientinstance that supports esential HTTP protocol aspects only.static CloseableHttpAsyncClientcreateMinimal(NHttpClientConnectionManager connManager, boolean shared) CreatesCloseableHttpAsyncClientinstance that supports esential HTTP protocol aspects only.static CloseableHttpAsyncClientcreateMinimal(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor) CreatesCloseableHttpAsyncClientinstance that supports esential HTTP protocol aspects only.CreatesCloseableHttpPipeliningClientinstance that supports pipelined request execution.createPipelining(NHttpClientConnectionManager connManager) CreatesCloseableHttpPipeliningClientinstance that supports pipelined request execution.createPipelining(NHttpClientConnectionManager connManager, boolean shared) CreatesCloseableHttpPipeliningClientinstance that supports pipelined request execution.createPipelining(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor) CreatesCloseableHttpPipeliningClientinstance that supports pipelined request execution.static CloseableHttpAsyncClientCreatesCloseableHttpAsyncClientinstance with default configuration based on ssytem properties.static HttpAsyncClientBuildercustom()Creates builder object for construction of customCloseableHttpAsyncClientinstances.
-
Constructor Details
-
HttpAsyncClients
private HttpAsyncClients()
-
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpAsyncClientinstances. -
createDefault
CreatesCloseableHttpAsyncClientinstance with default configuration. -
createSystem
CreatesCloseableHttpAsyncClientinstance with default configuration based on ssytem properties. -
createMinimal
CreatesCloseableHttpAsyncClientinstance 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) CreatesCloseableHttpAsyncClientinstance that supports esential HTTP protocol aspects only. This client does not support HTTP state management, authentication and automatic redirects. -
createMinimal
CreatesCloseableHttpAsyncClientinstance 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) CreatesCloseableHttpAsyncClientinstance 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
CreatesCloseableHttpPipeliningClientinstance 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) CreatesCloseableHttpPipeliningClientinstance that supports pipelined request execution. This client does not support authentication and automatic redirects.- Since:
- 4.1
-
createPipelining
public static CloseableHttpPipeliningClient createPipelining(NHttpClientConnectionManager connManager) CreatesCloseableHttpPipeliningClientinstance 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) CreatesCloseableHttpPipeliningClientinstance 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
-