Class MultipleAddresses
java.lang.Object
org.jivesoftware.smackx.address.packet.MultipleAddresses
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
Stanza extension that contains the list of addresses that a stanza should be sent or was sent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(MultipleAddresses.Type type, Jid jid, String node, String desc, boolean delivered, String uri) Adds a new address to which the stanza is going to be sent or was sent.Returns the list of addresses that matches the specified type.Returns the root element name.Returns the root element XML namespace.voidIndicate that the stanza being sent should not be replied.toXML(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
NAMESPACE
- See Also:
-
ELEMENT
- See Also:
-
QNAME
-
-
Constructor Details
-
MultipleAddresses
public MultipleAddresses()
-
-
Method Details
-
addAddress
public void addAddress(MultipleAddresses.Type type, Jid jid, String node, String desc, boolean delivered, String uri) Adds a new address to which the stanza is going to be sent or was sent.- Parameters:
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 stanza was already delivered to this address.uri- used to specify an external system address, such as a sip:, sips:, or im: URI.
-
setNoReply
Indicate that the stanza being sent should not be replied. -
getAddressesOfType
Returns the list of addresses that matches the specified type. Examples of address type are: TO, CC, BCC, etc.- Parameters:
type- Examples of address type are: TO, CC, BCC, etc.- Returns:
- the list of addresses that matches the specified type.
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
toXML
-