/** * Indicate that the packet being sent should not be replied. */ public void setNoReply() { // Create a new address with the specificed configuration Address address = new Address(NO_REPLY); // Add the new address to the list of multiple recipients addresses.add(address); }
/** * Returns the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. When no specific address was provided then the reply * can be sent to any or all recipients. Otherwise, the user should join the specified room * and send the reply to the room. * * @return the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. */ public String getReplyRoom() { List replyRoom = extension.getAddressesOfType(MultipleAddresses.REPLY_ROOM); return replyRoom.isEmpty() ? null : ((MultipleAddresses.Address) replyRoom.get(0)).getJid(); }
/** * Returns the list of addresses that matches the specified type. Examples of address * type are: TO, CC, BCC, etc.. * * @param type Examples of address type are: TO, CC, BCC, etc. * @return the list of addresses that matches the specified type. */ public List getAddressesOfType(String type) { List answer = new ArrayList(addresses.size()); for (Iterator it = addresses.iterator(); it.hasNext();) { Address address = (Address) it.next(); if (address.getType().equals(type)) { answer.add(address); } } return answer; }
if (replyAddress != null && replyAddress.getJid() != null) { reply.setTo(replyAddress.getJid()); connection.sendPacket(reply); List cc = new ArrayList(); for (Iterator it = info.getTOAddresses().iterator(); it.hasNext();) { String jid = ((MultipleAddresses.Address) it.next()).getJid(); to.add(jid); String jid = ((MultipleAddresses.Address) it.next()).getJid(); cc.add(jid);
if (replyAddress != null && replyAddress.getJid() != null) { reply.setTo(replyAddress.getJid()); connection.sendPacket(reply); List<String> cc = new ArrayList<String>(); for (Iterator<MultipleAddresses.Address> it = info.getTOAddresses().iterator(); it.hasNext();) { String jid = it.next().getJid(); to.add(jid); String jid = it.next().getJid(); cc.add(jid);
if (replyAddress != null && replyAddress.getJid() != null) { reply.setTo(replyAddress.getJid()); connection.sendPacket(reply); List cc = new ArrayList(); for (Iterator it = info.getTOAddresses().iterator(); it.hasNext();) { String jid = ((MultipleAddresses.Address) it.next()).getJid(); to.add(jid); String jid = ((MultipleAddresses.Address) it.next()).getJid(); cc.add(jid);
if (replyAddress != null && replyAddress.getJid() != null) { reply.setTo(replyAddress.getJid()); connection.sendPacket(reply); List cc = new ArrayList(); for (Iterator it = info.getTOAddresses().iterator(); it.hasNext();) { String jid = ((MultipleAddresses.Address) it.next()).getJid(); to.add(jid); String jid = ((MultipleAddresses.Address) it.next()).getJid(); cc.add(jid);
/** * Adds a new address to which the packet is going to be sent or was sent. * * @param type on of the static type (BCC, CC, NO_REPLY, REPLY_ROOM, etc.) * @param jid the JID address of the recipient. * @param node used to specify a sub-addressable unit at a particular JID, corresponding to * a Service Discovery node. * @param desc used to specify human-readable information for this address. * @param delivered true when the packet was already delivered to this address. * @param uri used to specify an external system address, such as a sip:, sips:, or im: URI. */ public void addAddress(String type, String jid, String node, String desc, boolean delivered, String uri) { // Create a new address with the specificed configuration Address address = new Address(type); address.setJid(jid); address.setNode(node); address.setDescription(desc); address.setDelivered(delivered); address.setUri(uri); // Add the new address to the list of multiple recipients addresses.add(address); }
/** * Adds a new address to which the packet is going to be sent or was sent. * * @param type on of the static type (BCC, CC, NO_REPLY, REPLY_ROOM, etc.) * @param jid the JID address of the recipient. * @param node used to specify a sub-addressable unit at a particular JID, corresponding to * a Service Discovery node. * @param desc used to specify human-readable information for this address. * @param delivered true when the packet was already delivered to this address. * @param uri used to specify an external system address, such as a sip:, sips:, or im: URI. */ public void addAddress(String type, String jid, String node, String desc, boolean delivered, String uri) { // Create a new address with the specificed configuration Address address = new Address(type); address.setJid(jid); address.setNode(node); address.setDescription(desc); address.setDelivered(delivered); address.setUri(uri); // Add the new address to the list of multiple recipients addresses.add(address); }
/** * Adds a new address to which the packet is going to be sent or was sent. * * @param type on of the static type (BCC, CC, NO_REPLY, REPLY_ROOM, etc.) * @param jid the JID address of the recipient. * @param node used to specify a sub-addressable unit at a particular JID, corresponding to * a Service Discovery node. * @param desc used to specify human-readable information for this address. * @param delivered true when the packet was already delivered to this address. * @param uri used to specify an external system address, such as a sip:, sips:, or im: URI. */ public void addAddress(String type, String jid, String node, String desc, boolean delivered, String uri) { // Create a new address with the specificed configuration Address address = new Address(type); address.setJid(jid); address.setNode(node); address.setDescription(desc); address.setDelivered(delivered); address.setUri(uri); // Add the new address to the list of multiple recipients addresses.add(address); }
/** * Adds a new address to which the packet is going to be sent or was sent. * * @param type on of the static type (BCC, CC, NO_REPLY, REPLY_ROOM, etc.) * @param jid the JID address of the recipient. * @param node used to specify a sub-addressable unit at a particular JID, corresponding to * a Service Discovery node. * @param desc used to specify human-readable information for this address. * @param delivered true when the packet was already delivered to this address. * @param uri used to specify an external system address, such as a sip:, sips:, or im: URI. */ public void addAddress(String type, String jid, String node, String desc, boolean delivered, String uri) { // Create a new address with the specificed configuration Address address = new Address(type); address.setJid(jid); address.setNode(node); address.setDescription(desc); address.setDelivered(delivered); address.setUri(uri); // Add the new address to the list of multiple recipients addresses.add(address); }
/** * Returns the list of addresses that matches the specified type. Examples of address * type are: TO, CC, BCC, etc.. * * @param type Examples of address type are: TO, CC, BCC, etc. * @return the list of addresses that matches the specified type. */ public List getAddressesOfType(String type) { List answer = new ArrayList(addresses.size()); for (Iterator it = addresses.iterator(); it.hasNext();) { Address address = (Address) it.next(); if (address.getType().equals(type)) { answer.add(address); } } return answer; }
/** * Returns the list of addresses that matches the specified type. Examples of address * type are: TO, CC, BCC, etc.. * * @param type Examples of address type are: TO, CC, BCC, etc. * @return the list of addresses that matches the specified type. */ public List<Address> getAddressesOfType(String type) { List<Address> answer = new ArrayList<Address>(addresses.size()); for (Iterator<Address> it = addresses.iterator(); it.hasNext();) { Address address = (Address) it.next(); if (address.getType().equals(type)) { answer.add(address); } } return answer; }
/** * Returns the list of addresses that matches the specified type. Examples of address * type are: TO, CC, BCC, etc.. * * @param type Examples of address type are: TO, CC, BCC, etc. * @return the list of addresses that matches the specified type. */ public List getAddressesOfType(String type) { List answer = new ArrayList(addresses.size()); for (Iterator it = addresses.iterator(); it.hasNext();) { Address address = (Address) it.next(); if (address.getType().equals(type)) { answer.add(address); } } return answer; }
/** * Returns the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. When no specific address was provided then the reply * can be sent to any or all recipients. Otherwise, the user should join the specified room * and send the reply to the room. * * @return the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. */ public String getReplyRoom() { List replyRoom = extension.getAddressesOfType(MultipleAddresses.REPLY_ROOM); return replyRoom.isEmpty() ? null : ((MultipleAddresses.Address) replyRoom.get(0)).getJid(); }
/** * Returns the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. When no specific address was provided then the reply * can be sent to any or all recipients. Otherwise, the user should join the specified room * and send the reply to the room. * * @return the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. */ public String getReplyRoom() { List replyRoom = extension.getAddressesOfType(MultipleAddresses.REPLY_ROOM); return replyRoom.isEmpty() ? null : ((MultipleAddresses.Address) replyRoom.get(0)).getJid(); }
/** * Returns the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. When no specific address was provided then the reply * can be sent to any or all recipients. Otherwise, the user should join the specified room * and send the reply to the room. * * @return the JID of a MUC room to which responses should be sent or <tt>null</tt> if * no specific address was provided. */ public String getReplyRoom() { List<MultipleAddresses.Address> replyRoom = extension.getAddressesOfType(MultipleAddresses.REPLY_ROOM); return replyRoom.isEmpty() ? null : ((MultipleAddresses.Address) replyRoom.get(0)).getJid(); }
/** * Indicate that the packet being sent should not be replied. */ public void setNoReply() { // Create a new address with the specificed configuration Address address = new Address(NO_REPLY); // Add the new address to the list of multiple recipients addresses.add(address); }
/** * Indicate that the packet being sent should not be replied. */ public void setNoReply() { // Create a new address with the specificed configuration Address address = new Address(NO_REPLY); // Add the new address to the list of multiple recipients addresses.add(address); }
/** * Indicate that the packet being sent should not be replied. */ public void setNoReply() { // Create a new address with the specificed configuration Address address = new Address(NO_REPLY); // Add the new address to the list of multiple recipients addresses.add(address); }