/** * 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); }
public Message Type(final Type type) { setType(type); return this; }
public void setType(final Type type) { if (type != null) { setType(type.toString()); } }