| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.packet.MultipleAddresses
public class MultipleAddresses
Packet extension that contains the list of addresses that a packet should be sent or was sent.
| Nested Class Summary | |
|---|---|
| static class | MultipleAddresses.Address | 
| Field Summary | |
|---|---|
| static String | BCC | 
| static String | CC | 
| static String | NO_REPLY | 
| static String | REPLY_ROOM | 
| static String | REPLY_TO | 
| static String | TO | 
| Constructor Summary | |
|---|---|
| MultipleAddresses() | |
| Method Summary | |
|---|---|
|  void | addAddress(String type,
           String jid,
           String node,
           String desc,
           boolean delivered,
           String uri)Adds a new address to which the packet is going to be sent or was sent. | 
|  List | getAddressesOfType(String type)Returns the list of addresses that matches the specified type. | 
|  String | getElementName()Returns the root element name. | 
|  String | getNamespace()Returns the root element XML namespace. | 
|  void | setNoReply()Indicate that the packet being sent should not be replied. | 
|  String | toXML()Returns the XML representation of the PacketExtension. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String BCC
public static final String CC
public static final String NO_REPLY
public static final String REPLY_ROOM
public static final String REPLY_TO
public static final String TO
| Constructor Detail | 
|---|
public MultipleAddresses()
| Method Detail | 
|---|
public void addAddress(String type,
                       String jid,
                       String node,
                       String desc,
                       boolean delivered,
                       String uri)
type - on of the static type (BCC, CC, NO_REPLY, REPLY_ROOM, etc.)jid - the JID address of the recipient.node - used to specify a sub-addressable unit at a particular JID, corresponding to
             a Service Discovery node.desc - used to specify human-readable information for this address.delivered - true when the packet was already delivered to this address.uri - used to specify an external system address, such as a sip:, sips:, or im: URI.public void setNoReply()
public List getAddressesOfType(String type)
type - Examples of address type are: TO, CC, BCC, etc.
public String getElementName()
PacketExtension
getElementName in interface PacketExtensionpublic String getNamespace()
PacketExtension
getNamespace in interface PacketExtensionpublic String toXML()
PacketExtension
toXML in interface PacketExtension| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||