public class SetVariableCommand extends AbstractAgiCommand
Sets a channel variable.
| Constructor and Description |
|---|
SetVariableCommand(String variable,
String value)
Creates a new GetVariableCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getValue()
Returns the value to set.
|
String |
getVariable()
Returns the name of the variable to set.
|
void |
setValue(String value)
Sets the value to set.
|
void |
setVariable(String variable)
Sets the name of the variable to set.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic String getVariable()
public void setVariable(String variable)
variable - the name of the variable to set.public String getValue()
public void setValue(String value)
value - the value to set.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.