Class MultipleAddresses

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

    public class MultipleAddresses
    extends java.lang.Object
    implements org.jivesoftware.smack.packet.ExtensionElement
    Stanza extension that contains the list of addresses that a stanza should be sent or was sent.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELEMENT  
      static java.lang.String NAMESPACE  
      static javax.xml.namespace.QName QNAME  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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 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()  
      java.lang.String getNamespace()  
      void setNoReply()
      Indicate that the stanza being sent should not be replied.
      org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jivesoftware.smack.packet.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

        getLanguage, getQName
    • Field Detail

      • QNAME

        public static final javax.xml.namespace.QName QNAME
    • Constructor Detail

      • MultipleAddresses

        public MultipleAddresses()
    • Method Detail

      • addAddress

        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)
        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

        public void setNoReply()
        Indicate that the stanza being sent should not be replied.
      • getAddressesOfType

        public java.util.List<MultipleAddresses.Address> getAddressesOfType​(MultipleAddresses.Type type)
        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

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.XmlElement
      • toXML

        public org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element