net.sf.asterisk.fastagi.command
Class SendTextCommand

java.lang.Object
  extended by net.sf.asterisk.fastagi.command.AGICommand
      extended by net.sf.asterisk.fastagi.command.SendTextCommand
All Implemented Interfaces:
java.io.Serializable

public class SendTextCommand
extends AGICommand

Sends the given text on a channel.
Most channels do not support the transmission of text.
Returns 0 if text is sent, or if the channel does not support text transmission. Returns -1 only on error/hangup.

Version:
$Id: SendTextCommand.java,v 1.2 2005/03/08 16:48:34 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
SendTextCommand(java.lang.String text)
          Creates a new SendTextCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getText()
          Returns the text to send.
 void setText(java.lang.String text)
          Sets the text to send.
 
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand
escapeAndQuote, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendTextCommand

public SendTextCommand(java.lang.String text)
Creates a new SendTextCommand.

Parameters:
text - the text to send.
Method Detail

getText

public java.lang.String getText()
Returns the text to send.

Returns:
the text to send.

setText

public void setText(java.lang.String text)
Sets the text to send.

Parameters:
text - the text to send.

buildCommand

public java.lang.String buildCommand()
Description copied from class: AGICommand
Returns a string suitable to be sent to asterisk.

Specified by:
buildCommand in class AGICommand
Returns:
a string suitable to be sent to asterisk.


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