Class 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 an HttpCommandExecutor that supports non-standard additionalCommands 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)  
    • 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 an HttpCommandExecutor that supports non-standard additionalCommands in addition to the standard.
        Parameters:
        additionalCommands - additional commands to allow the command executor to process
        addressOfRemoteServer - 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 this HttpCommandExecutor 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 interface org.openqa.selenium.logging.NeedsLocalLogs
      • getAddressOfRemoteServer

        public java.net.URL getAddressOfRemoteServer()