net.sf.asterisk.fastagi.command
Class SendImageCommand

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

public class SendImageCommand
extends AGICommand

Sends the given image on a channel.
Most channels do not support the transmission of images.
Returns 0 if image is sent, or if the channel does not support image transmission. Returns -1 only on error/hangup.
Image names should not include extensions.

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

Constructor Summary
SendImageCommand(java.lang.String image)
          Creates a new SendImageCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getImage()
          Returns the image to send.
 void setImage(java.lang.String image)
          Sets the image 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

SendImageCommand

public SendImageCommand(java.lang.String image)
Creates a new SendImageCommand.

Parameters:
image - the image to send, should not include extension.
Method Detail

getImage

public java.lang.String getImage()
Returns the image to send.

Returns:
the image to send.

setImage

public void setImage(java.lang.String image)
Sets the image to send.

Parameters:
image - the image to send, should not include extension.

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.