Asterisk-Java

org.asteriskjava.fastagi.command
Class VerboseCommand

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

public class VerboseCommand
extends AbstractAgiCommand

Sends a message to the Asterisk console via the verbose message system.

Always returns 1.

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

Constructor Summary
VerboseCommand(java.lang.String message, int level)
          Creates a new VerboseCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 int getLevel()
          Returns the level to use.
 java.lang.String getMessage()
          Returns the message to send.
 void setLevel(int level)
          Sets the level to use.
 void setMessage(java.lang.String message)
          Sets the message to send.
 
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

VerboseCommand

public VerboseCommand(java.lang.String message,
                      int level)
Creates a new VerboseCommand.

Parameters:
message - the message to send.
level - the verbosity level to use.

Must be in [1..4]

Method Detail

getMessage

public java.lang.String getMessage()
Returns the message to send.

Returns:
the message to send.

setMessage

public void setMessage(java.lang.String message)
Sets the message to send.

Parameters:
message - the message to send.

getLevel

public int getLevel()
Returns the level to use.

Returns:
the level to use.

setLevel

public void setLevel(int level)
Sets the level to use.

Must be in in [1..4].

Parameters:
level - the level to use.

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.