public abstract static class AdHocCommansModule.AdHocCommansAsyncCallback extends Object implements tigase.jaxmpp.core.client.AsyncCallback
| Constructor and Description |
|---|
AdHocCommansAsyncCallback() |
| Modifier and Type | Method and Description |
|---|---|
protected tigase.jaxmpp.core.client.xml.Element |
getCommand()
Return <command xmlns='http://jabber.org/protocol/commands' />
element of returned stanza.
|
protected tigase.jaxmpp.core.client.xmpp.stanzas.IQ |
getResponse()
Reutrns IQ stanza with response.
|
protected abstract void |
onResponseReceived(String sessionid,
String node,
State status,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement data)
Method called when response of ad-hoc command is received.
|
void |
onSuccess(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza responseStanza) |
protected tigase.jaxmpp.core.client.xml.Element getCommand()
protected tigase.jaxmpp.core.client.xmpp.stanzas.IQ getResponse()
protected abstract void onResponseReceived(String sessionid, String node, State status, tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement data) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
sessionid - ID of session. May be null.node - nodestatus - status of command executiondata - Data Formtigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void onSuccess(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza responseStanza)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onSuccess in interface tigase.jaxmpp.core.client.AsyncCallbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2017 Tigase. All rights reserved.