hudson.plugins.im.bot
Class BuildCommand

java.lang.Object
  extended by hudson.plugins.im.bot.AbstractTextSendingCommand
      extended by hudson.plugins.im.bot.BuildCommand
All Implemented Interfaces:
BotCommand

public class BuildCommand
extends AbstractTextSendingCommand

Build command for the instant messaging bot.

Author:
Pascal Bleser, kutzi

Constructor Summary
BuildCommand(java.lang.String imId)
           
 
Method Summary
 java.lang.String getHelp()
          Return the command usage text.
 java.lang.String getReply(Sender sender, java.lang.String[] args)
          Gets the text reply
 
Methods inherited from class hudson.plugins.im.bot.AbstractTextSendingCommand
executeCommand, getErrorReply, getJobProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildCommand

public BuildCommand(java.lang.String imId)
Parameters:
imId - An identifier describing the Im account used to send the build command. E.g. the Jabber ID of the Bot.
Method Detail

getReply

public java.lang.String getReply(Sender sender,
                                 java.lang.String[] args)
Description copied from class: AbstractTextSendingCommand
Gets the text reply

Specified by:
getReply in class AbstractTextSendingCommand
Parameters:
sender - the command sender
args - arguments passed to the command, where args[0] is the command name itself

getHelp

public java.lang.String getHelp()
Description copied from interface: BotCommand
Return the command usage text.

Returns:
the command usage text


Copyright © 2010. All Rights Reserved.