Class JdkHttpClientProvider
java.lang.Object
com.azure.core.http.jdk.httpclient.JdkHttpClientProvider
- All Implemented Interfaces:
HttpClientProvider
An
HttpClientProvider
that provides an implementation of HttpClient based on native JDK HttpClient.
NOTE: This implementation is only available in Java 11+ as that is when HttpClient
was
introduced.
-
Constructor Summary
ConstructorDescriptionFor testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of theHttpClient
that this HttpClientProvider is configured to create.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.core.http.HttpClientProvider
createInstance
-
Constructor Details
-
JdkHttpClientProvider
public JdkHttpClientProvider()For testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier.
-
-
Method Details
-
createInstance
Description copied from interface:HttpClientProvider
Creates a new instance of theHttpClient
that this HttpClientProvider is configured to create.- Specified by:
createInstance
in interfaceHttpClientProvider
- Returns:
- A new
HttpClient
instance, entirely unrelated to all other instances that were created previously.
-