public final class BlockingCommandManager extends Manager
| Modifier and Type | Method and Description |
|---|---|
void |
addAllJidsUnblockedListener(AllJidsUnblockedListener allJidsUnblockedListener) |
void |
addJidsBlockedListener(JidsBlockedListener jidsBlockedListener) |
void |
addJidsUnblockedListener(JidsUnblockedListener jidsUnblockedListener) |
void |
blockContacts(List<org.jxmpp.jid.Jid> jids)
Block contacts.
|
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(List<org.jxmpp.jid.Jid> jids)
Unblock contacts.
|
connection, getAuthenticatedConnectionOrThrowpublic static final String NAMESPACE
public static BlockingCommandManager getInstanceFor(XMPPConnection connection)
connection - public boolean isSupportedByServer() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic List<org.jxmpp.jid.Jid> getBlockList() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionInterruptedExceptionpublic void blockContacts(List<org.jxmpp.jid.Jid> jids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
public void unblockContacts(List<org.jxmpp.jid.Jid> jids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
public void unblockAll() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
public 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)