|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.action.AbstractManagerAction net.sf.asterisk.manager.action.SetVarAction
public class SetVarAction
The SetVarAction sets the value of a global or local channel variable.
Setting global variables is supported since Asterisk 1.2.
Field Summary | |
---|---|
java.lang.String |
channel
The channel on which to set the variable. |
java.lang.String |
value
The value to store. |
java.lang.String |
variable
The name of the variable to set. |
Constructor Summary | |
---|---|
SetVarAction()
Creates a new empty SetVarAction. |
|
SetVarAction(java.lang.String variable,
java.lang.String value)
Creates a new SetVarAction that sets the given global variable to a new value. |
|
SetVarAction(java.lang.String channel,
java.lang.String variable,
java.lang.String value)
Creates a new SetVarAction that sets the given channel variable of the given channel to a new value. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getChannel()
Returns the name of the channel. |
java.lang.String |
getValue()
Returns the value to store. |
java.lang.String |
getVariable()
Returns the name of the variable to set. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel. |
void |
setValue(java.lang.String value)
Sets the value to store. |
void |
setVariable(java.lang.String variable)
Sets the name of the variable to set. |
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction |
---|
getActionId, setActionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String channel
public java.lang.String variable
public java.lang.String value
Constructor Detail |
---|
public SetVarAction()
public SetVarAction(java.lang.String variable, java.lang.String value)
variable
- the name of the global variable to setvalue
- the new valuepublic SetVarAction(java.lang.String channel, java.lang.String variable, java.lang.String value)
channel
- the name of the channel to set the variable onvariable
- the name of the channel variablevalue
- the new valueMethod Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel
- the name of the channel to set.public java.lang.String getVariable()
public void setVariable(java.lang.String variable)
variable
- the name of the variable to set.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |