[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/manager/action CommandAction.java,1.
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-07-27 20:54:09
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4631/src/java/net/sf/asterisk/manager/action Modified Files: CommandAction.java Log Message: Added convenience constructor Index: CommandAction.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action/CommandAction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -p -r1.3 -r1.4 --- CommandAction.java 16 Jul 2005 13:19:34 -0000 1.3 +++ CommandAction.java 27 Jul 2005 20:54:01 -0000 1.4 @@ -17,8 +17,10 @@ package net.sf.asterisk.manager.action; /** - * The CommandAction sends a command line interface (CLI) command to the asterisk server.<br> - * For a list of supported commands type <code>help</code> on asterisk's command line. + * The CommandAction sends a command line interface (CLI) command to the + * asterisk server.<br> + * For a list of supported commands type <code>help</code> on asterisk's + * command line. * * @author srt * @version $Id$ @@ -33,6 +35,24 @@ public class CommandAction extends Abstr protected String command; /** + * Creates a new CommandAction. + */ + public CommandAction() + { + + } + + /** + * Creates a new CommandAction with the given command. + * + * @param command the CLI command to execute. + */ + public CommandAction(String command) + { + this.command = command; + } + + /** * Returns the name of this action, i.e. "Command". */ public String getAction() |