|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule
tigase.jaxmpp.core.client.xmpp.modules.adhoc.AdHocCommansModule
public class AdHocCommansModule
Module to handle ad-hoc commands.
| Nested Class Summary | |
|---|---|
static class |
AdHocCommansModule.AdHocCommansAsyncCallback
Callback to handle result of ad-hoc command. |
| Field Summary | |
|---|---|
static Criteria |
CRIT
|
| Fields inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule |
|---|
log, observable, sessionObject, writer |
| Constructor Summary | |
|---|---|
AdHocCommansModule(Observable parent,
SessionObject sessionObject,
PacketWriter packetWriter,
DiscoItemsModule discoItemsModule,
DiscoInfoModule discoInfoModule)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractIQModule |
|---|
addListener, addListener, process, removeAllListeners, removeListener, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Criteria CRIT
| Constructor Detail |
|---|
public AdHocCommansModule(Observable parent,
SessionObject sessionObject,
PacketWriter packetWriter,
DiscoItemsModule discoItemsModule,
DiscoInfoModule discoInfoModule)
| Method Detail |
|---|
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 - callback
JaxmppExceptionpublic Criteria getCriteria()
XmppModule
public String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
See Service Discovery Features
protected void processDiscoInfoEvent(DiscoInfoModule.DiscoInfoEvent be)
throws XMLException,
XMPPException
XMLException
XMPPException
protected void processDiscoItemEvent(DiscoItemsModule.DiscoItemEvent be)
throws XMLException
XMLException
protected void processGet(IQ element)
throws XMPPException,
XMLException,
JaxmppException
AbstractIQModule<iq type='get'>.
processGet in class AbstractIQModuleelement - incoming XMPP stanza
XMPPException
XMLException
JaxmppException
protected void processSet(IQ element)
throws XMPPException,
XMLException,
JaxmppException
AbstractIQModule<iq type='set'>.
processSet in class AbstractIQModuleelement - incoming XMPP stanza
XMPPException
XMLException
JaxmppExceptionpublic void register(AdHocCommand command)
command - command to register
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||