Package org.openqa.selenium.remote.http
Interface HttpClient.Factory
-
- Enclosing interface:
- HttpClient
public static interface HttpClient.Factory
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
cleanupIdleClients()
Closes idle clients.default HttpClient
createClient(java.net.URL url)
Creates a HTTP client that will send requests to the given URL.HttpClient
createClient(ClientConfig config)
static HttpClient.Factory
createDefault()
Use thewebdriver.http.factory
system property to determine which implementation ofHttpClient
should be used.
-
-
-
Method Detail
-
createDefault
static HttpClient.Factory createDefault()
Use thewebdriver.http.factory
system property to determine which implementation ofHttpClient
should be used.
-
createClient
default HttpClient createClient(java.net.URL url)
Creates a HTTP client that will send requests to the given URL.- Parameters:
url
- URL The base URL for requests.
-
createClient
HttpClient createClient(ClientConfig config)
-
cleanupIdleClients
default void cleanupIdleClients()
Closes idle clients.
-
-