|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.manager.action.AbstractManagerAction
net.sf.asterisk.manager.action.GetVarAction
public class GetVarAction
The GetVarAction queries for a global or local channel variable.
Reading global variables is supported since Asterisk 1.2.
| Constructor Summary | |
|---|---|
GetVarAction()
Creates a new empty GetVarAction. |
|
GetVarAction(java.lang.String variable)
Creates a new GetVarAction that queries for the given global variable. |
|
GetVarAction(java.lang.String channel,
java.lang.String variable)
Creates a new GetVarAction that queries for the given local channel variable. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getChannel()
Returns the name of the channel if you query for a local channel variable or null if it is a global variable. |
java.lang.String |
getVariable()
Retruns the name of the variable to query. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel if you query for a local channel variable. |
void |
setVariable(java.lang.String variable)
Sets the name of the variable to query. |
| 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 |
| Constructor Detail |
|---|
public GetVarAction()
public GetVarAction(java.lang.String variable)
variable - the name of the global variable to query.
public GetVarAction(java.lang.String channel,
java.lang.String variable)
channel - the name of the channel, for example "SIP/1234-9cd".variable - the name of the variable to query.| Method Detail |
|---|
public java.lang.String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic java.lang.String getChannel()
null if it is a global variable.
public void setChannel(java.lang.String channel)
channel - the channel if you query for a local channel variable or
null to query for a gloabl variable.public java.lang.String getVariable()
public void setVariable(java.lang.String variable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||