Class DriverCommandExecutor

    • Constructor Detail

      • DriverCommandExecutor

        public DriverCommandExecutor​(DriverService service)
        Creates a new DriverCommandExecutor which will communicate with the driver as configured by the given service.
        service - The DriverService to send commands to.
      • DriverCommandExecutor

        protected DriverCommandExecutor​(DriverService service,
                                        java.util.Map<java.lang.String,​CommandInfo> additionalCommands)
        Creates an DriverCommandExecutor that supports non-standard additionalCommands in addition to the standard.
        service - driver server
        additionalCommands - additional commands the remote end can process
    • Method Detail

      • execute

        public Response execute​(Command command)
        Sends the command to the driver server for execution. The server will be started if requesting a new session. Likewise, if terminating a session, the server will be shutdown once a response is received.
        Specified by:
        execute in interface CommandExecutor
        execute in class HttpCommandExecutor
        command - The command to execute.
        The command response.
        Throws: - If an I/O error occurs while sending the command.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface