|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.im.bot.BotCommand
hudson.plugins.im.bot.Bot.HelpCommand
@Extension public static class Bot.HelpCommand
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
Bot.HelpCommand()
|
|
| Method Summary | |
|---|---|
void |
executeCommand(Bot bot,
IMChat groupChat,
IMMessage message,
Sender sender,
java.lang.String[] args)
Execute a command. |
java.util.Collection<java.lang.String> |
getCommandNames()
Obtains the name of the command. |
java.lang.String |
getHelp()
Return the command usage text. |
| Methods inherited from class hudson.plugins.im.bot.BotCommand |
|---|
all |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bot.HelpCommand()
| Method Detail |
|---|
public java.util.Collection<java.lang.String> getCommandNames()
BotCommand
getCommandNames in class BotCommand
public void executeCommand(Bot bot,
IMChat groupChat,
IMMessage message,
Sender sender,
java.lang.String[] args)
throws IMException
BotCommand
executeCommand in class BotCommandbot - The bot for which this command runs. Never null.groupChat - the IMChat object, may be used to send reply messagesmessage - the original IMMessagesender - the command senderargs - arguments passed to the command, where args[0] is the command name itself
IMException - if anything goes wrong while communicating with the remote IM serverpublic java.lang.String getHelp()
BotCommand
getHelp in class BotCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||