Interface HttpClientFactory


  • public interface HttpClientFactory
    Factory object for HttpClient.
    Since:
    1.0
    • Method Detail

      • getDefault

        static HttpClientFactory getDefault​(org.mule.runtime.http.api.HttpService httpService)
        Provides a default implementation of the HttpClientFactory
        Parameters:
        httpService - the HttpService needed to create a new HttpClient instance
        Returns:
        a default implementation of the HttpClientFactory
      • create

        org.mule.runtime.http.api.client.HttpClient create​(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory,
                                                           org.mule.runtime.http.api.client.proxy.ProxyConfig proxyConfig)
        Parameters:
        tlsContextFactory - the TlsContextFactory required exclusively for HTTPS
        proxyConfig - the ProxyConfig required when connecting through a proxy,
        Returns:
        a newly built HttpClient based on the tlsContextFactory and proxyConfig.