public abstract static class AdHocCommansModule.AdHocCommansAsyncCallback extends Object implements AsyncCallback
| Constructor and Description |
|---|
AdHocCommansAsyncCallback() |
| Modifier and Type | Method and Description |
|---|---|
protected Element |
getCommand()
Return <command xmlns='http://jabber.org/protocol/commands' />
element of returned stanza.
|
protected IQ |
getResponse()
Reutrns IQ stanza with response.
|
protected abstract void |
onResponseReceived(String sessionid,
String node,
State status,
JabberDataElement data)
Method called when response of ad-hoc command is received.
|
void |
onSuccess(Stanza responseStanza)
Called when received response has type result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonError, onTimeoutprotected Element getCommand()
protected IQ getResponse()
protected abstract void onResponseReceived(String sessionid, String node, State status, JabberDataElement data) throws JaxmppException
sessionid - ID of session. May be null.node - nodestatus - status of command executiondata - Data FormJaxmppExceptionpublic void onSuccess(Stanza responseStanza) throws JaxmppException
onSuccess in interface AsyncCallbackresponseStanza - received stanzaJaxmppExceptionCopyright © 2006–2016 Tigase. All rights reserved.