public final class ReachabilityManager extends ExtensionManager
By default this manager is not enabled. If you support reachability addresses you have to enable it.
features, xmppSession| Modifier and Type | Method and Description |
|---|---|
void |
addReachabilityListener(ReachabilityListener reachabilityListener)
Adds a reachability listener, which allows to listen for reachability updates.
|
List<Address> |
getReachabilityAddresses() |
void |
removeReachabilityListener(ReachabilityListener reachabilityListener)
Removes a previously added reachability listener.
|
List<Address> |
requestReachabilityAddresses(rocks.xmpp.core.Jid contact)
Requests the reachability addresses of a contact.
|
setEnabledpublic void addReachabilityListener(ReachabilityListener reachabilityListener)
reachabilityListener - The listener.removeReachabilityListener(ReachabilityListener)public void removeReachabilityListener(ReachabilityListener reachabilityListener)
reachabilityListener - The listener.addReachabilityListener(ReachabilityListener)public List<Address> requestReachabilityAddresses(rocks.xmpp.core.Jid contact) throws rocks.xmpp.core.XmppException
contact - The contact.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionCopyright © 2014 XMPP.rocks. All rights reserved.