Class HttpUrlConnectionAsyncHttpClientBuilder


  • public class HttpUrlConnectionAsyncHttpClientBuilder
    extends java.lang.Object
    Builder class responsible for creating instances of HttpClient backed by HttpUrlConnection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.azure.android.core.http.HttpClient build()
      Creates a new HttpUrlConnection-backed HttpClient 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 the HttpCallDispatcher to execute the enqueued HTTP calls.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpUrlConnectionAsyncHttpClientBuilder

        public HttpUrlConnectionAsyncHttpClientBuilder()
        Creates HttpUrlConnectionAsyncHttpClientBuilder.
    • Method Detail

      • setHttpCallDispatcher

        public HttpUrlConnectionAsyncHttpClientBuilder setHttpCallDispatcher​(com.azure.android.core.http.HttpCallDispatcher httpCallDispatcher)
        Sets the HttpCallDispatcher 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-backed HttpClient 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.