@AutoService(value=com.okta.commons.http.RequestExecutorFactory.class) public class OkHttpRequestExecutorFactory extends java.lang.Object implements RequestExecutorFactory
| Constructor and Description |
|---|
OkHttpRequestExecutorFactory() |
OkHttpRequestExecutorFactory(okhttp3.OkHttpClient client)
Creates an `OkHttpRequestExecutorFactory` that creates a `OkHttpRequestExecutor` instances
that uses a shared `OkHttpClient`.
|
| Modifier and Type | Method and Description |
|---|---|
RequestExecutor |
create(HttpClientConfiguration clientConfiguration) |
public OkHttpRequestExecutorFactory()
public OkHttpRequestExecutorFactory(okhttp3.OkHttpClient client)
client - a custom configured `OkHttpClient`.public RequestExecutor create(HttpClientConfiguration clientConfiguration)
create in interface RequestExecutorFactoryCopyright © 2018-2022 Okta. All Rights Reserved.