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 Type(final Type type) {
   setType(type);
   return this;
 }
Beispiel #3
0
 public void setType(final Type type) {
   if (type != null) {
     setType(type.toString());
   }
 }