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<Jid> jids)
Block contacts.
|
java.util.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(java.util.List<Jid> jids)
Unblock contacts.
|
connection, getAuthenticatedConnectionOrThrow
public 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.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
java.lang.InterruptedException
public java.util.List<Jid> getBlockList() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
java.lang.InterruptedException
public void blockContacts(java.util.List<Jid> jids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
jids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
java.lang.InterruptedException
public void unblockContacts(java.util.List<Jid> jids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
jids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
java.lang.InterruptedException
public void unblockAll() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
java.lang.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)