net.sf.asterisk.fastagi.command
Class SetPriorityCommand

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

public class SetPriorityCommand
extends AGICommand

Sets the priority for continuation upon exiting the application.
Since Asterisk 1.2 SetPriorityCommand also supports labels.

Version:
$Id: SetPriorityCommand.java,v 1.5 2005/11/27 15:22:40 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
SetPriorityCommand(java.lang.String priority)
          Creates a new SetPriorityCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getPriority()
          Returns the priority or label for continuation upon exiting the application.
 void setPriority(java.lang.String priority)
          Sets the priority or label for continuation upon exiting the application.
 
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

SetPriorityCommand

public SetPriorityCommand(java.lang.String priority)
Creates a new SetPriorityCommand.

Parameters:
priority - the priority or label for continuation upon exiting the application.
Method Detail

getPriority

public java.lang.String getPriority()
Returns the priority or label for continuation upon exiting the application.

Returns:
the priority or label for continuation upon exiting the application.

setPriority

public void setPriority(java.lang.String priority)
Sets the priority or label for continuation upon exiting the application.

Parameters:
priority - the priority or label for continuation upon exiting the application.

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.