public abstract class AbstractManagerAction extends Object implements ManagerAction
Constructor and Description |
---|
AbstractManagerAction() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getAction()
Returns the name of the action for example "Hangup".
|
String |
getActionId()
Returns the action id.
|
void |
setActionId(String actionId)
Sets the action id.
|
String |
toString() |
public abstract String getAction()
ManagerAction
getAction
in interface ManagerAction
public String getActionId()
ManagerAction
getActionId
in interface ManagerAction
public void setActionId(String actionId)
ManagerAction
If the action id is set and sent to the asterisk server any response returned by the Asterisk server will include the same id. This way the action id can be used to track actions and their corresponding responses and response events.
Note that Asterisk-Java uses its own internal action id to match actions with the corresponding responses and events. Though the internal action is never exposed to the application code. So if you want to handle reponses or response events on your own your application must set a unique action id using this method otherwise the action id of the reponse and response event objects passed to your application will be null.
setActionId
in interface ManagerAction
actionId
- the user provided action id to set.ManagerResponse.getActionId()
,
ResponseEvent.getActionId()
Copyright © 2004–2017. All rights reserved.