Class ApacheHttpClientFactory

java.lang.Object
com.github.tomakehurst.wiremock.http.client.apache5.ApacheHttpClientFactory
All Implemented Interfaces:
com.github.tomakehurst.wiremock.extension.Extension, com.github.tomakehurst.wiremock.http.client.HttpClientFactory

public class ApacheHttpClientFactory extends Object implements com.github.tomakehurst.wiremock.http.client.HttpClientFactory
  • Field Summary

    Fields inherited from interface com.github.tomakehurst.wiremock.http.client.HttpClientFactory

    DEFAULT_MAX_CONNECTIONS, DEFAULT_TIMEOUT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.tomakehurst.wiremock.http.client.HttpClient
    buildHttpClient(com.github.tomakehurst.wiremock.core.Options options, boolean trustAllCertificates, List<String> trustedHosts, boolean useSystemProperties)
     
    static org.apache.hc.client5.http.impl.classic.CloseableHttpClient
     
    static org.apache.hc.client5.http.impl.classic.CloseableHttpClient
    createClient(int timeoutMilliseconds)
     
    static org.apache.hc.client5.http.impl.classic.CloseableHttpClient
    createClient(int maxConnections, int timeoutMilliseconds, com.github.tomakehurst.wiremock.common.ProxySettings proxySettings, com.github.tomakehurst.wiremock.common.ssl.KeyStoreSettings trustStoreSettings, boolean trustAllCertificates, List<String> trustedHosts, boolean useSystemProperties, com.github.tomakehurst.wiremock.common.NetworkAddressRules networkAddressRules, boolean disableConnectionReuse, String userAgent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.tomakehurst.wiremock.extension.Extension

    start, stop

    Methods inherited from interface com.github.tomakehurst.wiremock.http.client.HttpClientFactory

    getName
  • Constructor Details

    • ApacheHttpClientFactory

      public ApacheHttpClientFactory()
  • Method Details

    • buildHttpClient

      public com.github.tomakehurst.wiremock.http.client.HttpClient buildHttpClient(com.github.tomakehurst.wiremock.core.Options options, boolean trustAllCertificates, List<String> trustedHosts, boolean useSystemProperties)
      Specified by:
      buildHttpClient in interface com.github.tomakehurst.wiremock.http.client.HttpClientFactory
    • createClient

      public static org.apache.hc.client5.http.impl.classic.CloseableHttpClient createClient()
    • createClient

      public static org.apache.hc.client5.http.impl.classic.CloseableHttpClient createClient(int timeoutMilliseconds)
    • createClient

      public static org.apache.hc.client5.http.impl.classic.CloseableHttpClient createClient(int maxConnections, int timeoutMilliseconds, com.github.tomakehurst.wiremock.common.ProxySettings proxySettings, com.github.tomakehurst.wiremock.common.ssl.KeyStoreSettings trustStoreSettings, boolean trustAllCertificates, List<String> trustedHosts, boolean useSystemProperties, com.github.tomakehurst.wiremock.common.NetworkAddressRules networkAddressRules, boolean disableConnectionReuse, String userAgent)