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 onError(Stanza responseStanza, XMPPException.ErrorCondition error) throws JaxmppException
AsyncCallback
onError
in interface AsyncCallback
responseStanza
- received IQ stanzaerror
- error conditionJaxmppException
public void onSuccess(Stanza responseStanza) throws JaxmppException
AsyncCallback
onSuccess
in interface AsyncCallback
responseStanza
- received stanzaJaxmppException
public abstract boolean onSuccess(Streamhost host)
public void onTimeout() throws JaxmppException
AsyncCallback
onTimeout
in interface AsyncCallback
JaxmppException
public void setHosts(List<Streamhost> hosts)
Copyright © 2006–2016 Tigase. All rights reserved.