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.Factory
createClient
in class org.openqa.selenium.remote.internal.OkHttpClient.Factory
public void cleanupIdleClients()
cleanupIdleClients
in interface org.openqa.selenium.remote.http.HttpClient.Factory
cleanupIdleClients
in class org.openqa.selenium.remote.internal.OkHttpClient.Factory