Class HttpUrlConnectionAsyncHttpClientBuilder
- java.lang.Object
-
- com.azure.android.core.http.httpurlconnection.HttpUrlConnectionAsyncHttpClientBuilder
-
public class HttpUrlConnectionAsyncHttpClientBuilder extends java.lang.ObjectBuilder class responsible for creating instances ofHttpClientbacked 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.HttpClientbuild()Creates a new HttpUrlConnection-backedHttpClientinstance on every call, using the configuration set in the builder at the time of the build method call.HttpUrlConnectionAsyncHttpClientBuildersetHttpCallDispatcher(com.azure.android.core.http.HttpCallDispatcher httpCallDispatcher)Sets theHttpCallDispatcherto execute the enqueued HTTP calls.
-
-
-
Method Detail
-
setHttpCallDispatcher
public HttpUrlConnectionAsyncHttpClientBuilder setHttpCallDispatcher(com.azure.android.core.http.HttpCallDispatcher httpCallDispatcher)
Sets theHttpCallDispatcherto 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-backedHttpClientinstance on every call, using the configuration set in the builder at the time of the build method call.- Returns:
- A new HttpUrlConnection-backed
HttpClientinstance.
-
-