Class HttpUrlConnectionAsyncHttpClientBuilder
- java.lang.Object
-
- com.azure.android.core.http.httpurlconnection.HttpUrlConnectionAsyncHttpClientBuilder
-
public class HttpUrlConnectionAsyncHttpClientBuilder extends java.lang.Object
Builder class responsible for creating instances ofHttpClient
backed by HttpUrlConnection.
-
-
Constructor Summary
Constructors Constructor Description HttpUrlConnectionAsyncHttpClientBuilder()
Creates HttpUrlConnectionAsyncHttpClientBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.android.core.http.HttpClient
build()
Creates a new HttpUrlConnection-backedHttpClient
instance on every call, using the configuration set in the builder at the time of the build method call.HttpUrlConnectionAsyncHttpClientBuilder
setHttpCallDispatcher(com.azure.android.core.http.HttpCallDispatcher httpCallDispatcher)
Sets theHttpCallDispatcher
to execute the enqueued HTTP calls.
-
-
-
Method Detail
-
setHttpCallDispatcher
public HttpUrlConnectionAsyncHttpClientBuilder setHttpCallDispatcher(com.azure.android.core.http.HttpCallDispatcher httpCallDispatcher)
Sets theHttpCallDispatcher
to execute the enqueued HTTP calls.- Parameters:
httpCallDispatcher
- The HTTP call dispatcher- Returns:
- The updated HttpUrlConnectionAsyncHttpClientBuilder object.
- Throws:
java.lang.NullPointerException
- if the httpCallDispatcher parameter is null.
-
build
public com.azure.android.core.http.HttpClient build()
Creates a new HttpUrlConnection-backedHttpClient
instance on every call, using the configuration set in the builder at the time of the build method call.- Returns:
- A new HttpUrlConnection-backed
HttpClient
instance.
-
-