public void chatMessageReceived(Message msg) { JID jid = msg.getFromAddress(); log.debug((new StringBuilder("JIDStucture:")).append(jid.toString()).toString()); String msgBody = msg.getBody(); log.debug((new StringBuilder("message Body:")).append(msgBody).toString()); // validateMessage() }
public void messageError(Message msg) { log.debug("MessageError: " + msg.getErrorText()); }
public void messageRead(Message msg) { log.debug("Message Read: " + msg.getSubject()); }