Package org.openqa.selenium.remote
Class HttpCommandExecutor
- java.lang.Object
-
- org.openqa.selenium.remote.HttpCommandExecutor
-
- All Implemented Interfaces:
org.openqa.selenium.logging.NeedsLocalLogs
,CommandExecutor
- Direct Known Subclasses:
DriverCommandExecutor
public class HttpCommandExecutor extends java.lang.Object implements CommandExecutor, org.openqa.selenium.logging.NeedsLocalLogs
-
-
Constructor Summary
Constructors Constructor Description HttpCommandExecutor(java.net.URL addressOfRemoteServer)
HttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer)
Creates anHttpCommandExecutor
that supports non-standardadditionalCommands
in addition to the standard.HttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
HttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands, org.openqa.selenium.remote.http.ClientConfig config, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
HttpCommandExecutor(org.openqa.selenium.remote.http.ClientConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
defineCommand(java.lang.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.Response
execute(Command command)
java.net.URL
getAddressOfRemoteServer()
static org.openqa.selenium.remote.http.HttpClient.Factory
getDefaultClientFactory()
void
setLocalLogs(org.openqa.selenium.logging.LocalLogs logs)
-
-
-
Constructor Detail
-
HttpCommandExecutor
public HttpCommandExecutor(java.net.URL addressOfRemoteServer)
-
HttpCommandExecutor
public HttpCommandExecutor(org.openqa.selenium.remote.http.ClientConfig config)
-
HttpCommandExecutor
public HttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer)
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(java.util.Map<java.lang.String,CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
-
HttpCommandExecutor
public HttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands, org.openqa.selenium.remote.http.ClientConfig config, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
-
-
Method Detail
-
getDefaultClientFactory
public static org.openqa.selenium.remote.http.HttpClient.Factory getDefaultClientFactory()
-
defineCommand
protected void defineCommand(java.lang.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. 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
public void setLocalLogs(org.openqa.selenium.logging.LocalLogs logs)
- Specified by:
setLocalLogs
in interfaceorg.openqa.selenium.logging.NeedsLocalLogs
-
getAddressOfRemoteServer
public java.net.URL getAddressOfRemoteServer()
-
execute
public Response execute(Command command) throws java.io.IOException
- Specified by:
execute
in interfaceCommandExecutor
- Throws:
java.io.IOException
-
-