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, wait
onError, onTimeout
protected 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 FormJaxmppException
public void onSuccess(Stanza responseStanza) throws JaxmppException
onSuccess
in interface AsyncCallback
responseStanza
- received stanzaJaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.