public class AdHocCommandModule<CTX extends Context> extends AbstractModule<CTX>
Modifier and Type | Class and Description |
---|---|
static interface |
AdHocCommandModule.ScriptCommandProcessor |
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static String |
XMLNS |
context, log
Constructor and Description |
---|
AdHocCommandModule(AdHocCommandModule.ScriptCommandProcessor scriptProcessor) |
Modifier and Type | Method and Description |
---|---|
List<tigase.xml.Element> |
getCommandListItems(tigase.xmpp.JID senderJid,
tigase.xmpp.JID toJid) |
String[] |
getFeatures()
Returns XMPP features offered by module.
|
tigase.criteria.Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming
stanza.
|
List<tigase.xml.Element> |
getScriptItems(String node,
tigase.xmpp.JID stanzaTo,
tigase.xmpp.JID stanzaFrom) |
void |
process(Packet packet)
Process incoming stanza.
|
protected void |
processScriptAdHoc(Packet packet) |
void |
register(AdHocCommand command) |
afterRegistration, beforeRegister, fireEvent, setContext, unregisterModule, write, write
public static final String ID
public static final String XMLNS
public AdHocCommandModule(AdHocCommandModule.ScriptCommandProcessor scriptProcessor)
public List<tigase.xml.Element> getCommandListItems(tigase.xmpp.JID senderJid, tigase.xmpp.JID toJid)
public String[] getFeatures()
Module
null
.public tigase.criteria.Criteria getModuleCriteria()
Module
public List<tigase.xml.Element> getScriptItems(String node, tigase.xmpp.JID stanzaTo, tigase.xmpp.JID stanzaFrom)
public void process(Packet packet) throws ComponentException
Module
packet
- received stanza
.ComponentException
- if stanza can't be processed correctly. ComponentException is
converted to error stanza and returned to stanza sender.protected void processScriptAdHoc(Packet packet)
public void register(AdHocCommand command)
Copyright © 2014 "Tigase, Inc.". All rights reserved.