Interface RemoteCommandWithResponse

    • Method Detail

      • setResponseConnection

        void setResponseConnection​(Connection value)
        Sets the connection to send the response to.
        Parameters:
        value - the connection
      • getResponseConnection

        Connection getResponseConnection()
        Returns the connection to send the response to.
        Returns:
        the connectio
      • responseConnectionTipText

        String responseConnectionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setResponsePayload

        void setResponsePayload​(byte[] value)
        Sets the payload for the response.
        Parameters:
        value - the payload
      • getResponsePayload

        byte[] getResponsePayload()
        Returns the payload of the response, if any.
        Returns:
        the payload
      • getResponsePayloadObjects

        Object[] getResponsePayloadObjects()
        Returns the objects that represent the response payload.
        Returns:
        the objects
      • assembleResponse

        String assembleResponse​(RemoteCommandProcessor processor)
        Assembles the command into a string, including any payload.
        Parameters:
        processor - for formatting/parsing
        Returns:
        the generated string, null if failed to assemble
      • handleResponse

        void handleResponse​(RemoteScriptingEngine engine,
                            ResponseHandler handler)
        Handles the response.
        Parameters:
        engine - the remote engine handling the response
        handler - for handling the response
      • beforeSendResponse

        void beforeSendResponse()
        Hook method before sending the response.
      • afterSendResponse

        void afterSendResponse​(String error)
        Hook method after sending the response.
        Parameters:
        error - null if successful, otherwise error message