Package tigase.component.adhoc
Class AdHocCommandManager
java.lang.Object
tigase.component.adhoc.AdHocCommandManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCommand
(String nodeName) boolean
hasCommand
(String node) Method checks if exists implementation for this command in this CommandManagervoid
void
process
(Packet packet, Element commandElement, String node, String action, String sessionId, AdHocCommand adHocCommand, Consumer<Packet> resultConsumer) void
registerCommand
(AdHocCommand command) void
setAllCommands
(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
-