public class MultipleAddresses extends java.lang.Object implements ExtensionElement
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipleAddresses.Address |
static class |
MultipleAddresses.Type |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
MultipleAddresses() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddress(MultipleAddresses.Type type,
org.jxmpp.jid.Jid jid,
java.lang.String node,
java.lang.String desc,
boolean delivered,
java.lang.String uri)
Adds a new address to which the stanza(/packet) is going to be sent or was sent.
|
java.util.List<MultipleAddresses.Address> |
getAddressesOfType(MultipleAddresses.Type type)
Returns the list of addresses that matches the specified type.
|
java.lang.String |
getElementName()
Returns the root element name.
|
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
void |
setNoReply()
Indicate that the stanza(/packet) being sent should not be replied.
|
XmlStringBuilder |
toXML()
Returns the XML representation of this Element.
|
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT
public MultipleAddresses()
public void addAddress(MultipleAddresses.Type type, org.jxmpp.jid.Jid jid, java.lang.String node, java.lang.String desc, boolean delivered, java.lang.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 stanza(/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 java.util.List<MultipleAddresses.Address> getAddressesOfType(MultipleAddresses.Type type)
type - Examples of address type are: TO, CC, BCC, etc.public java.lang.String getElementName()
NamedElementgetElementName in interface NamedElementpublic java.lang.String getNamespace()
ExtensionElementgetNamespace in interface ExtensionElementpublic XmlStringBuilder toXML()
Element