INTERFACE DEFINITION DESCRIPTION

The Interface between RemoteControl and ActiveMQ Message Server is provided by the class MessageServerInterface.

It provides the following methods

  1. MessageServerInterface (String hostname, String path, String queue)
    Creates the MessageServerInterface to interface to the Message Server running on host "hostname", at a path specified by "path", and specifying the queue from which this client will read from and write to.
     

  2. String httpPost (KeyValueList)
    A public method to send a message to the Message Server. The XML Message from Remote Control is encoded as part of the HTTP POST message.
     

  3. String httpGet ()
    A public method to retrieve a message from the Message Server. The HTTP GET command retrieves the message from the queue as a String. This can then be converted in to KeyValueList to be sent to the Remote Control.
     

  4. String getString(KeyValueList)
    Convert a KeyValueList to a String. This is a private utility method.
     

  5. KeyValueList getKVList(String)
    Convert a String to a KeyValueList. This is a public utility method.

Zipped source code for the Interface and setup code to test the interface is here (src.zip).