Interface HttpClientFactory

  • All Known Implementing Classes:
    HttpClientFactoryImpl

    public interface HttpClientFactory

    Definition of an interface that allows the creation of an HttpClient object.

    This interface defines a factory method that can be used to create new, fully configured instances of HttpClient. The new instances are created based on a configuration object.

    • Method Detail

      • newHttpClient

        HttpClient newHttpClient​(HttpClientConfig config)
        Creates a new instance of HttpClient and configures it according to the passed in configuration object.
        Parameters:
        config - the configuration for the new client
        Returns:
        the new HttpClient instance
      • newHttpClientAlt

        HttpClient newHttpClientAlt​(HttpClientConfig config)
        Creates a new instance of HttpClient and configures it according to the passed in configuration object.
        Parameters:
        config - the configuration for the new(native java) client
        Returns:
        the new HttpClient instance