hudson.plugins.jabber.im.transport.bot
Class BuildCommand
java.lang.Object
hudson.plugins.jabber.im.transport.bot.BuildCommand
- All Implemented Interfaces:
- BotCommand
public class BuildCommand
- extends java.lang.Object
- implements BotCommand
Build command for the Jabber bot.
- Author:
- Pascal Bleser
|
Method Summary |
void |
executeCommand(JabberChat groupChat,
org.jivesoftware.smack.packet.Message message,
java.lang.String sender,
java.lang.String[] args)
Execute a command. |
java.lang.String |
getHelp()
Return the command usage text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildCommand
public BuildCommand(java.lang.String jabberId)
executeCommand
public void executeCommand(JabberChat groupChat,
org.jivesoftware.smack.packet.Message message,
java.lang.String sender,
java.lang.String[] args)
throws org.jivesoftware.smack.XMPPException
- Description copied from interface:
BotCommand
- Execute a command.
- Specified by:
executeCommand in interface BotCommand
- Parameters:
groupChat - the JabberChat object, may be used to send reply messagesmessage - the original Messagesender - the room nickname of the command senderargs - arguments passed to the command, where args[0] is the command name itself
- Throws:
org.jivesoftware.smack.XMPPException
getHelp
public java.lang.String getHelp()
- Description copied from interface:
BotCommand
- Return the command usage text.
- Specified by:
getHelp in interface BotCommand
- Returns:
- the command usage text
Copyright © 2009. All Rights Reserved.