Package tigase.component.adhoc
Class AdHocCommandManager
java.lang.Object
tigase.component.adhoc.AdHocCommandManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommand(String nodeName) booleanhasCommand(String node) Method checks if exists implementation for this command in this CommandManagervoidvoidprocess(Packet packet, Element commandElement, String node, String action, String sessionId, AdHocCommand adHocCommand, Consumer<Packet> resultConsumer) voidregisterCommand(AdHocCommand command) voidsetAllCommands(AdHocCommand[] allCommands)
-
Constructor Details
-
AdHocCommandManager
public AdHocCommandManager()
-
-
Method Details
-
getAllCommands
-
setAllCommands
-
getCommand
-
hasCommand
Method checks if exists implementation for this command in this CommandManager- Parameters:
node- name for which perform the check- Returns:
- true - if command exists for this node
-
process
- Throws:
AdHocCommandException
-
process
public void process(Packet packet, Element commandElement, String node, String action, String sessionId, AdHocCommand adHocCommand, Consumer<Packet> resultConsumer) throws AdHocCommandException - Throws:
AdHocCommandException
-
registerCommand
-