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<Jid> jids)
Block contacts.
|
List<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<Jid> jids)
Unblock contacts.
|
connection, getAuthenticatedConnectionOrThrow, schedule
public static final String NAMESPACE
public static BlockingCommandManager getInstanceFor(XMPPConnection connection)
connection
- public boolean isSupportedByServer() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public List<Jid> getBlockList() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockContacts(List<Jid> jids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
public void unblockContacts(List<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)