Beispiel #1
0
 /**
  * Create a message
  *
  * @param body
  * @param toURI
  * @param fromUri
  */
 public Message(final String body, final XmppURI toURI, final XmppURI fromUri, final Type type) {
   super(PACKET_NAME, null);
   setType(type);
   setFrom(fromUri);
   setTo(toURI);
   setBody(body);
 }
Beispiel #2
0
 public Message Body(final String body) {
   setBody(body);
   return this;
 }