Class DefaultConnection

    • Field Detail

      • m_Host

        protected String m_Host
        the host.
      • m_Port

        protected int m_Port
        the host port.
    • Constructor Detail

      • DefaultConnection

        public DefaultConnection()
    • Method Detail

      • setHost

        public void setHost​(String value)
        Sets the host to send the command to.
        Parameters:
        value - the host
      • getHost

        public String getHost()
        Returns the host to send the command to.
        Returns:
        the host
      • hostTipText

        public String hostTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setPort

        public void setPort​(int value)
        Sets the port to send the command to.
        Parameters:
        value - the port
      • getPort

        public int getPort()
        Returns the port to send the command to.
        Returns:
        the port
      • portTipText

        public String portTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • send

        protected String send​(RemoteCommand cmd,
                              RemoteCommandProcessor processor,
                              String host,
                              int port,
                              boolean request)
        Sends the command to the specified sscripting engine.
        Parameters:
        cmd - the command to send
        processor - the processor for formatting/parsing
        host - the host to send the command to
        port - the host port
        request - whether Request or Response
        Returns:
        null if successfully sent, otherwise error message