Asterisk-Java

org.asteriskjava.fastagi.command
Class SetExtensionCommand

java.lang.Object
  extended by org.asteriskjava.fastagi.command.AbstractAgiCommand
      extended by org.asteriskjava.fastagi.command.SetExtensionCommand
All Implemented Interfaces:
java.io.Serializable, AgiCommand

public class SetExtensionCommand
extends AbstractAgiCommand

Sets the extension for continuation upon exiting the application.

Version:
$Id: SetExtensionCommand.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
SetExtensionCommand(java.lang.String extension)
          Creates a new SetPriorityCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getExtension()
          Returns the extension for continuation upon exiting the application.
 void setExtension(java.lang.String extension)
          Sets the extension for continuation upon exiting the application.
 
Methods inherited from class org.asteriskjava.fastagi.command.AbstractAgiCommand
escapeAndQuote, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetExtensionCommand

public SetExtensionCommand(java.lang.String extension)
Creates a new SetPriorityCommand.

Parameters:
extension - the extension for continuation upon exiting the application.
Method Detail

getExtension

public java.lang.String getExtension()
Returns the extension for continuation upon exiting the application.

Returns:
the extension for continuation upon exiting the application.

setExtension

public void setExtension(java.lang.String extension)
Sets the extension for continuation upon exiting the application.

Parameters:
extension - the extension for continuation upon exiting the application.

buildCommand

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

Specified by:
buildCommand in interface AgiCommand
Specified by:
buildCommand in class AbstractAgiCommand
Returns:
a string suitable to be sent to asterisk.

Asterisk-Java

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