Asterisk-Java

org.asteriskjava.manager.action
Class SendTextAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.manager.action.SendTextAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class SendTextAction
extends AbstractManagerAction

Sends a text message to a given channel while in a call. An active channel and a text message are required in order to success.

It is defined in main/manager.c.

Available since Asterisk 1.6.0

Since:
1.0.0
Version:
$Id: SendTextAction.java 1156 2008-08-25 20:24:25Z srt $
Author:
Laureano
See Also:
Serialized Form

Constructor Summary
SendTextAction()
          Creates a new empty SendTextAction.
SendTextAction(java.lang.String channel, java.lang.String message)
          Creates a new SendTextAction that sends the given message to 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 send the message to.
 java.lang.String getMessage()
          Returns the message to send.
 void setChannel(java.lang.String channel)
          Sets the name of the channel to send the message to.
 void setMessage(java.lang.String message)
          Sets the message to send.
 
Methods inherited from class org.asteriskjava.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

SendTextAction

public SendTextAction()
Creates a new empty SendTextAction.


SendTextAction

public SendTextAction(java.lang.String channel,
                      java.lang.String message)
Creates a new SendTextAction that sends the given message to the given channel.

Parameters:
channel - the name of the channel to send the message to.
message - the message to send.
Method Detail

getAction

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

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 send the message to.

Returns:
the name of the channel to send the message to.

setChannel

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

Parameters:
channel - the name of the channel to send the message to.

getMessage

public java.lang.String getMessage()
Returns the message to send.

Returns:
the message to send.

setMessage

public void setMessage(java.lang.String message)
Sets the message to send.

Parameters:
message - the message to send.

Asterisk-Java

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