Package org.openqa.selenium.remote
Class HttpCommandExecutor
java.lang.Object
org.openqa.selenium.remote.HttpCommandExecutor
- All Implemented Interfaces:
NeedsLocalLogs
,CommandExecutor
- Direct Known Subclasses:
DriverCommandExecutor
-
Constructor Summary
ConstructorDescriptionHttpCommandExecutor
(URL addressOfRemoteServer) HttpCommandExecutor
(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer) Creates anHttpCommandExecutor
that supports non-standardadditionalCommands
in addition to the standard.HttpCommandExecutor
(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, ClientConfig config) HttpCommandExecutor
(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, HttpClient.Factory httpClientFactory) HttpCommandExecutor
(Map<String, CommandInfo> additionalCommands, ClientConfig config, HttpClient.Factory httpClientFactory) HttpCommandExecutor
(ClientConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
defineCommand
(String commandName, CommandInfo info) It may be useful to extend the commands understood by thisHttpCommandExecutor
at run time, and this can be achieved via this method.static HttpClient.Factory
void
setLocalLogs
(LocalLogs logs)
-
Constructor Details
-
HttpCommandExecutor
-
HttpCommandExecutor
-
HttpCommandExecutor
Creates anHttpCommandExecutor
that supports non-standardadditionalCommands
in addition to the standard.- Parameters:
additionalCommands
- additional commands to allow the command executor to processaddressOfRemoteServer
- URL of remote end Selenium server
-
HttpCommandExecutor
public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, ClientConfig config) -
HttpCommandExecutor
public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, HttpClient.Factory httpClientFactory) -
HttpCommandExecutor
public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, ClientConfig config, HttpClient.Factory httpClientFactory)
-
-
Method Details
-
getDefaultClientFactory
-
defineCommand
It may be useful to extend the commands understood by thisHttpCommandExecutor
at run time, and this can be achieved via this method. Note, this is protected, and expected usage is for subclasses only to call this.- Parameters:
commandName
- The name of the command to use.info
- CommandInfo for the command name provided
-
setLocalLogs
- Specified by:
setLocalLogs
in interfaceNeedsLocalLogs
-
getAddressOfRemoteServer
-
execute
- Specified by:
execute
in interfaceCommandExecutor
- Throws:
IOException
-