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