private static void sendToIndividualRecipients(Connection connection, Packet packet, List<String> to, List<String> cc, List<String> bcc) { if (to != null) { for (Iterator<String> it = to.iterator(); it.hasNext();) { String jid = it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (cc != null) { for (Iterator<String> it = cc.iterator(); it.hasNext();) { String jid = it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (bcc != null) { for (Iterator<String> it = bcc.iterator(); it.hasNext();) { String jid = it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } }
private static void sendToIndividualRecipients(Connection connection, Packet packet, List to, List cc, List bcc) { if (to != null) { for (Iterator it = to.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (cc != null) { for (Iterator it = cc.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (bcc != null) { for (Iterator it = bcc.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } }
private static void sendToIndividualRecipients(Connection connection, Packet packet, List to, List cc, List bcc) { if (to != null) { for (Iterator it = to.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (cc != null) { for (Iterator it = cc.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (bcc != null) { for (Iterator it = bcc.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } }
private static void sendToIndividualRecipients(XMPPConnection connection, Packet packet, List to, List cc, List bcc) { if (to != null) { for (Iterator it = to.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (cc != null) { for (Iterator it = cc.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } if (bcc != null) { for (Iterator it = bcc.iterator(); it.hasNext();) { String jid = (String) it.next(); packet.setTo(jid); connection.sendPacket(new PacketCopy(packet.toXML())); } } }