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)  
    • Method Summary

      All 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 this HttpCommandExecutor at run time, and this can be achieved via this method.
      Response execute​(Command command)  
      java.net.URL getAddressOfRemoteServer()  
      void setLocalLogs​(org.openqa.selenium.logging.LocalLogs logs)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpCommandExecutor

        public HttpCommandExecutor​(java.net.URL addressOfRemoteServer)
      • 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)
    • Method Detail

      • 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()