public class AppiumHttpClientFactory
extends org.openqa.selenium.remote.internal.OkHttpClient.Factory
| Constructor and Description |
|---|
AppiumHttpClientFactory() |
AppiumHttpClientFactory(java.time.Duration connectionTimeout,
java.time.Duration readTimeout)
Creates a factory instance for HttpOK client with customized
Appium config.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupIdleClients() |
org.openqa.selenium.remote.http.HttpClient |
createClient(java.net.URL url) |
public AppiumHttpClientFactory()
public AppiumHttpClientFactory(java.time.Duration connectionTimeout,
java.time.Duration readTimeout)
connectionTimeout - http connection timeoutreadTimeout - http read timeoutpublic org.openqa.selenium.remote.http.HttpClient createClient(java.net.URL url)
createClient in interface org.openqa.selenium.remote.http.HttpClient.FactorycreateClient in class org.openqa.selenium.remote.internal.OkHttpClient.Factorypublic void cleanupIdleClients()
cleanupIdleClients in interface org.openqa.selenium.remote.http.HttpClient.FactorycleanupIdleClients in class org.openqa.selenium.remote.internal.OkHttpClient.Factory