Package com.okta.commons.http.okhttp
Class OkHttpRequestExecutorFactory
java.lang.Object
com.okta.commons.http.okhttp.OkHttpRequestExecutorFactory
- All Implemented Interfaces:
RequestExecutorFactory
@AutoService(com.okta.commons.http.RequestExecutorFactory.class)
public class OkHttpRequestExecutorFactory
extends Object
implements RequestExecutorFactory
- Since:
- 1.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionOkHttpRequestExecutorFactory(okhttp3.OkHttpClient client) Creates an `OkHttpRequestExecutorFactory` that creates a `OkHttpRequestExecutor` instances that uses a shared `OkHttpClient`. -
Method Summary
-
Constructor Details
-
OkHttpRequestExecutorFactory
public OkHttpRequestExecutorFactory()- Since:
- 1.2.0
-
OkHttpRequestExecutorFactory
public OkHttpRequestExecutorFactory(okhttp3.OkHttpClient client) Creates an `OkHttpRequestExecutorFactory` that creates a `OkHttpRequestExecutor` instances that uses a shared `OkHttpClient`.- Parameters:
client- a custom configured `OkHttpClient`.- Since:
- 1.2.8
-
-
Method Details
-
create
- Specified by:
createin interfaceRequestExecutorFactory
-