Class MultipleAddresses

    • Method Detail

      • addAddress

        public void addAddress​(MultipleAddresses.Type type,
                               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.AddressgetAddressesOfType​(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.