public final class BlockingCommandManager extends Manager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMESPACE |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllJidsUnblockedListener(AllJidsUnblockedListener allJidsUnblockedListener) |
void |
addJidsBlockedListener(JidsBlockedListener jidsBlockedListener) |
void |
addJidsUnblockedListener(JidsUnblockedListener jidsUnblockedListener) |
void |
blockContacts(java.util.List<org.jxmpp.jid.Jid> jids)
Block contacts.
|
java.util.List<org.jxmpp.jid.Jid> |
getBlockList()
Returns the block list.
|
static BlockingCommandManager |
getInstanceFor(XMPPConnection connection)
Get the singleton instance of BlockingCommandManager.
|
boolean |
isSupportedByServer()
Returns true if Blocking Command is supported by the server.
|
void |
removeAllJidsUnblockedListener(AllJidsUnblockedListener allJidsUnblockedListener) |
void |
removeJidsBlockedListener(JidsBlockedListener jidsBlockedListener) |
void |
removeJidsUnblockedListener(JidsUnblockedListener jidsUnblockedListener) |
void |
unblockAll()
Unblock all.
|
void |
unblockContacts(java.util.List<org.jxmpp.jid.Jid> jids)
Unblock contacts.
|
connection, getAuthenticatedConnectionOrThrow, schedulepublic static final java.lang.String NAMESPACE
public static BlockingCommandManager getInstanceFor(XMPPConnection connection)
connection - public boolean isSupportedByServer() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic java.util.List<org.jxmpp.jid.Jid> getBlockList() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void blockContacts(java.util.List<org.jxmpp.jid.Jid> jids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
jids - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void unblockContacts(java.util.List<org.jxmpp.jid.Jid> jids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
jids - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void unblockAll() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void addJidsBlockedListener(JidsBlockedListener jidsBlockedListener)
public void removeJidsBlockedListener(JidsBlockedListener jidsBlockedListener)
public void addJidsUnblockedListener(JidsUnblockedListener jidsUnblockedListener)
public void removeJidsUnblockedListener(JidsUnblockedListener jidsUnblockedListener)
public void addAllJidsUnblockedListener(AllJidsUnblockedListener allJidsUnblockedListener)
public void removeAllJidsUnblockedListener(AllJidsUnblockedListener allJidsUnblockedListener)