public class AdHocCommansModule extends AbstractIQModule
| Modifier and Type | Class and Description |
|---|---|
static class |
AdHocCommansModule.AdHocCommansAsyncCallback
Callback to handle result of ad-hoc command.
|
| Modifier and Type | Field and Description |
|---|---|
static Criteria |
CRIT |
log, observable, sessionObject, writer| Constructor and Description |
|---|
AdHocCommansModule(SessionObject sessionObject,
PacketWriter packetWriter,
DiscoItemsModule discoItemsModule,
DiscoInfoModule discoInfoModule) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(JID toJID,
String node,
Action action,
JabberDataElement data,
AsyncCallback asyncCallback)
Calls ad-hoc command on remote resource.
|
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
protected void |
processDiscoInfoEvent(DiscoInfoModule.DiscoInfoEvent be) |
protected void |
processDiscoItemEvent(DiscoItemsModule.DiscoItemEvent be) |
protected void |
processGet(IQ element)
Method for processing stanza
<iq type='get'>. |
protected void |
processSet(IQ element)
Method for processing stanza
<iq type='set'>. |
void |
register(AdHocCommand command)
Registers new ad-hoc command.
|
addListener, addListener, process, removeAllListeners, removeListener, removeListener, setObservablepublic static final Criteria CRIT
public AdHocCommansModule(SessionObject sessionObject, PacketWriter packetWriter, DiscoItemsModule discoItemsModule, DiscoInfoModule discoInfoModule)
public void execute(JID toJID, String node, Action action, JabberDataElement data, AsyncCallback asyncCallback) throws JaxmppException
toJID - remote ad-hoc command executor.node - nodeaction - actiondata - Data FormasyncCallback - callbackJaxmppExceptionpublic Criteria getCriteria()
XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
protected void processDiscoInfoEvent(DiscoInfoModule.DiscoInfoEvent be) throws XMLException, XMPPException
XMLExceptionXMPPExceptionprotected void processDiscoItemEvent(DiscoItemsModule.DiscoItemEvent be) throws XMLException
XMLExceptionprotected void processGet(IQ element) throws XMPPException, XMLException, JaxmppException
AbstractIQModule<iq type='get'>.processGet in class AbstractIQModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionJaxmppExceptionprotected void processSet(IQ element) throws XMPPException, XMLException, JaxmppException
AbstractIQModule<iq type='set'>.processSet in class AbstractIQModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionJaxmppExceptionpublic void register(AdHocCommand command)
command - command to registerCopyright © 2006–2014 Tigase. All rights reserved.