Class AdHocCommandHandler

java.lang.Object
org.jivesoftware.smackx.commands.AbstractAdHocCommand
org.jivesoftware.smackx.commands.AdHocCommandHandler
Direct Known Subclasses:
AdHocCommandHandler.SingleStage

public abstract class AdHocCommandHandler extends AbstractAdHocCommand
Represents a command that can be executed locally from a remote location. This class must be extended to implement an specific ad-hoc command. This class provides some useful tools:
  • Node
  • Name
  • Session ID
  • Current Stage
  • Available actions
  • Default action
To implement a new command extend this class and implement all the abstract methods. When implementing the actions remember that they could be invoked several times, and that you must use the current stage number to know what to do.