Module org.mule.oauth.client.impl
Package org.mule.oauth.client.api.http
Interface HttpClientFactory
-
public interface HttpClientFactoryFactory object forHttpClient.- Since:
- 1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description org.mule.runtime.http.api.client.HttpClientcreate(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory, org.mule.runtime.http.api.client.proxy.ProxyConfig proxyConfig)static HttpClientFactorygetDefault(org.mule.runtime.http.api.HttpService httpService)Provides a default implementation of theHttpClientFactory
-
-
-
Method Detail
-
getDefault
static HttpClientFactory getDefault(org.mule.runtime.http.api.HttpService httpService)
Provides a default implementation of theHttpClientFactory- Parameters:
httpService- theHttpServiceneeded to create a newHttpClientinstance- 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- theTlsContextFactoryrequired exclusively for HTTPSproxyConfig- theProxyConfigrequired when connecting through a proxy,- Returns:
- a newly built
HttpClientbased on thetlsContextFactoryandproxyConfig.
-
-