net.sf.asterisk.manager.action
Class HangupAction

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

public class HangupAction
extends AbstractManagerAction

The HangupAction causes the pbx to hang up a given channel.

Version:
$Id: HangupAction.java,v 1.4 2005/11/08 10:14:09 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
HangupAction()
          Creates a new empty HangupAction.
HangupAction(java.lang.String channel)
          Creates a new HangupAction that hangs up the given channel.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getChannel()
          Returns the name of the channel to hangup.
 void setChannel(java.lang.String channel)
          Sets the name of the channel to hangup.
 
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
 

Constructor Detail

HangupAction

public HangupAction()
Creates a new empty HangupAction.


HangupAction

public HangupAction(java.lang.String channel)
Creates a new HangupAction that hangs up the given channel.

Parameters:
channel - the name of the channel to hangup.
Since:
0.2
Method Detail

getAction

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

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

getChannel

public java.lang.String getChannel()
Returns the name of the channel to hangup.

Returns:
the name of the channel to hangup.

setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel to hangup.

Parameters:
channel - the name of the channel to hangup.


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