public class MultipleRecipientManager
extends java.lang.Object
| Constructor and Description |
|---|
MultipleRecipientManager() |
| Modifier and Type | Method and Description |
|---|---|
static MultipleRecipientInfo |
getMultipleRecipientInfo(org.jivesoftware.smack.packet.Stanza packet)
Returns the
MultipleRecipientInfo contained in the specified stanza(/packet) or
null if none was found. |
static void |
reply(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Message original,
org.jivesoftware.smack.packet.Message reply)
Sends a reply to a previously received stanza(/packet) that was sent to multiple recipients.
|
static void |
send(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Stanza packet,
java.util.Collection<java.lang.String> to,
java.util.Collection<java.lang.String> cc,
java.util.Collection<java.lang.String> bcc)
Sends the specified stanza(/packet) to the collection of specified recipients using the
specified connection.
|
static void |
send(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Stanza packet,
java.util.Collection<java.lang.String> to,
java.util.Collection<java.lang.String> cc,
java.util.Collection<java.lang.String> bcc,
java.lang.String replyTo,
java.lang.String replyRoom,
boolean noReply)
Sends the specified stanza(/packet) to the collection of specified recipients using the specified
connection.
|
public static void send(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Stanza packet,
java.util.Collection<java.lang.String> to,
java.util.Collection<java.lang.String> cc,
java.util.Collection<java.lang.String> bcc)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.FeatureNotSupportedException,
org.jivesoftware.smack.SmackException.NotConnectedException
connection - the connection to use to send the packet.packet - the stanza(/packet) to send to the list of recipients.to - the collection of JIDs to include in the TO list or null if no TO
list exists.cc - the collection of JIDs to include in the CC list or null if no CC
list exists.bcc - the collection of JIDs to include in the BCC list or null if no BCC
list exists.org.jivesoftware.smack.SmackException.FeatureNotSupportedException - if special XEP-33 features where requested, but the
server does not support them.org.jivesoftware.smack.XMPPException.XMPPErrorException - if server does not support XEP-33: Extended Stanza Addressing and
some XEP-33 specific features were requested.org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the server.org.jivesoftware.smack.SmackException.NotConnectedExceptionpublic static void send(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Stanza packet,
java.util.Collection<java.lang.String> to,
java.util.Collection<java.lang.String> cc,
java.util.Collection<java.lang.String> bcc,
java.lang.String replyTo,
java.lang.String replyRoom,
boolean noReply)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.FeatureNotSupportedException,
org.jivesoftware.smack.SmackException.NotConnectedException
connection - the connection to use to send the packet.packet - the stanza(/packet) to send to the list of recipients.to - the collection of JIDs to include in the TO list or null if no TO list exists.cc - the collection of JIDs to include in the CC list or null if no CC list exists.bcc - the collection of JIDs to include in the BCC list or null if no BCC list
exists.replyTo - address to which all replies are requested to be sent or null
indicating that they can reply to any address.replyRoom - JID of a MUC room to which responses should be sent or null
indicating that they can reply to any address.noReply - true means that receivers should not reply to the message.org.jivesoftware.smack.XMPPException.XMPPErrorException - if server does not support XEP-33: Extended Stanza Addressing and
some XEP-33 specific features were requested.org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the server.org.jivesoftware.smack.SmackException.FeatureNotSupportedException - if special XEP-33 features where requested, but the
server does not support them.org.jivesoftware.smack.SmackException.NotConnectedExceptionpublic static void reply(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Message original,
org.jivesoftware.smack.packet.Message reply)
throws org.jivesoftware.smack.SmackException,
org.jivesoftware.smack.XMPPException.XMPPErrorException
connection - the connection to use to send the reply.original - the previously received stanza(/packet) that was sent to multiple recipients.reply - the new message to send as a reply.org.jivesoftware.smack.SmackExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionpublic static MultipleRecipientInfo getMultipleRecipientInfo(org.jivesoftware.smack.packet.Stanza packet)
MultipleRecipientInfo contained in the specified stanza(/packet) or
null if none was found. Only packets sent to multiple recipients will
contain such information.packet - the stanza(/packet) to check.