public abstract class StreamhostUsedCallback extends Object implements AsyncCallback
| Constructor and Description |
|---|
StreamhostUsedCallback() |
| Modifier and Type | Method and Description |
|---|---|
List<Streamhost> |
getHosts() |
abstract void |
onError(Exception ex,
String errorText) |
void |
onError(Stanza responseStanza,
XMPPException.ErrorCondition error)
Called when received response has type error.
|
void |
onSuccess(Stanza responseStanza)
Called when received response has type result.
|
abstract boolean |
onSuccess(Streamhost host) |
void |
onTimeout()
Called when response wasn't received in given time.
|
void |
setHosts(List<Streamhost> hosts) |
public List<Streamhost> getHosts()
public void setHosts(List<Streamhost> hosts)
public void onError(Stanza responseStanza, XMPPException.ErrorCondition error) throws JaxmppException
AsyncCallbackonError in interface AsyncCallbackresponseStanza - received IQ stanzaerror - error conditionJaxmppExceptionpublic void onSuccess(Stanza responseStanza) throws JaxmppException
AsyncCallbackonSuccess in interface AsyncCallbackresponseStanza - received stanzaJaxmppExceptionpublic abstract boolean onSuccess(Streamhost host)
public void onTimeout()
throws JaxmppException
AsyncCallbackonTimeout in interface AsyncCallbackJaxmppExceptionCopyright © 2006–2020 Tigase. All rights reserved.