hudson.plugins.jabber.im.transport.bot
Class SetAliasCommand.AliasCommand
java.lang.Object
hudson.plugins.jabber.im.transport.bot.SetAliasCommand.AliasCommand
- All Implemented Interfaces:
- BotCommand
- Enclosing class:
- SetAliasCommand
public static class SetAliasCommand.AliasCommand
- extends java.lang.Object
- implements BotCommand
An alias.
|
Method Summary |
void |
executeCommand(IMChat chat,
IMMessage 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 |
SetAliasCommand.AliasCommand
public SetAliasCommand.AliasCommand(BotCommand cmd,
java.lang.String commandName,
java.lang.String[] arguments)
executeCommand
public void executeCommand(IMChat chat,
IMMessage message,
java.lang.String sender,
java.lang.String[] args)
throws IMException
- Description copied from interface:
BotCommand
- Execute a command.
- Specified by:
executeCommand in interface BotCommand
- Parameters:
chat - the IMChat object, may be used to send reply messagesmessage - the original IMMessagesender - the room nickname of the command senderargs - arguments passed to the command, where args[0] is the command name itself
- Throws:
IMException
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.