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 -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tomakehurst.wiremock.http.client.HttpClientbuildHttpClient(com.github.tomakehurst.wiremock.core.Options options, boolean trustAllCertificates, List<String> trustedHosts, boolean useSystemProperties) static org.apache.hc.client5.http.impl.classic.CloseableHttpClientstatic org.apache.hc.client5.http.impl.classic.CloseableHttpClientcreateClient(int timeoutMilliseconds) static org.apache.hc.client5.http.impl.classic.CloseableHttpClientcreateClient(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, waitMethods inherited from interface com.github.tomakehurst.wiremock.extension.Extension
start, stopMethods 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:
buildHttpClientin interfacecom.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)
-