View Javadoc

1   package org.votech.plastic.outgoing.messages;
2   
3   import java.net.URI;
4   import java.util.List;
5   
6   /**
7    * A message to be sent out to other applications.  Subclasses
8    * allow taking advantage of java's strong argument typing, and should
9    * be make applications more resistant to any message or argment spec changes.
10   * Many of the concrete implementation of this will have a static convertReturn
11   * method that will put the return value into the appropriate form.
12   * 
13   * @author jdt
14   *
15   */
16  public interface Message {
17  
18      /**
19       * Get the arguments to be passed with this message.
20       * @return
21       */
22      List getArgs();
23      /**
24       * Get the full URI for this Message, including any message fragment.
25       * @return
26       */
27      URI getURI();
28  
29      /**
30       * Set the action message fragment.
31       * @param actionFragment
32       */
33      void setAction(String actionFragment);
34  }