public final class BlockingCommandManager
extends org.jivesoftware.smack.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(org.jivesoftware.smack.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.
|
public static final java.lang.String NAMESPACE
public static BlockingCommandManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
connection
- TODO javadoc me pleasepublic boolean isSupportedByServer() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException
- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.public java.util.List<org.jxmpp.jid.Jid> getBlockList() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException
- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.public void blockContacts(java.util.List<org.jxmpp.jid.Jid> jids) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
jids
- TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException
- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException
- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.public void unblockContacts(java.util.List<org.jxmpp.jid.Jid> jids) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
jids
- TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException
- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException
- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.public void unblockAll() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException
- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException
- if the XMPP connection is not connected.java.lang.InterruptedException
- if the calling thread was interrupted.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)