net.sf.asterisk.manager.action
Class CommandAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.CommandAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class CommandAction
extends AbstractManagerAction

The CommandAction sends a command line interface (CLI) command to the asterisk server.
For a list of supported commands type help on asterisk's command line.

Version:
$Id: CommandAction.java,v 1.5 2005/08/07 00:09:42 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
protected  java.lang.String command
           
 
Constructor Summary
CommandAction()
          Creates a new CommandAction.
CommandAction(java.lang.String command)
          Creates a new CommandAction with the given command.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getCommand()
          Returns the command.
 void setCommand(java.lang.String command)
          Sets the CLI command to send to the asterisk server.
 
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

command

protected java.lang.String command
Constructor Detail

CommandAction

public CommandAction()
Creates a new CommandAction.


CommandAction

public CommandAction(java.lang.String command)
Creates a new CommandAction with the given command.

Parameters:
command - the CLI command to execute.
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "Command".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getCommand

public java.lang.String getCommand()
Returns the command.


setCommand

public void setCommand(java.lang.String command)
Sets the CLI command to send to the asterisk server.



Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.