Class RemoteControlClient

    • Constructor Detail

      • RemoteControlClient

        public RemoteControlClient​(int port)
        Creates this client.
    • Method Detail

      • run

        public String run​(String command)
                   throws IOException
        Run a command.
        Parameters:
        command - a command
        Returns:
        a JSON-formatted status message or other output provided by the action.
        Throws:
        IOException - if a communication error occurred.
      • run

        public void run​(String command,
                        Writer writer)
                 throws IOException
        Runs one or more commands.
        Parameters:
        command - a command
        writer - the writer to write a response to
        Throws:
        IOException - if a communication error occurred.