net.sf.asterisk.fastagi.command
Class SetContextCommand

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

public class SetContextCommand
extends AGICommand

Sets the context for continuation upon exiting the application.

Version:
$Id: SetContextCommand.java,v 1.1 2005/03/05 22:46:58 srt Exp $
Author:
srt
See Also:
Serialized Form

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

SetContextCommand

public SetContextCommand(java.lang.String context)
Creates a new SetPriorityCommand.

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

getContext

public java.lang.String getContext()
Returns the context for continuation upon exiting the application.

Returns:
the context for continuation upon exiting the application.

setContext

public void setContext(java.lang.String context)
Sets the context for continuation upon exiting the application.

Parameters:
context - the context 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.