public class CommandResponse extends ManagerResponse
Asterisk's handling of the command action is generelly quite hairy. It sends a "Response: Follows" line followed by the raw output of the command including empty lines. At the end of the command output a line containing "--END COMMAND--" is sent. The reader parses this response into a CommandResponse object to hide these details.
CommandAction
,
Serialized FormConstructor and Description |
---|
CommandResponse() |
Modifier and Type | Method and Description |
---|---|
String |
getPrivilege()
Returns the AMI authorization class of this response.
|
List<String> |
getResult()
Returns a List of strings representing the lines returned by the CLI command.
|
void |
setPrivilege(String privilege) |
void |
setResult(List<String> result)
Sets the result.
|
getActionId, getAttribute, getAttributes, getDateReceived, getEventList, getEvents, getMessage, getOutput, getResponse, getServer, getUniqueId, setActionId, setAttributes, setDateReceived, setEventList, setEvents, setMessage, setOutput, setResponse, setServer, setUniqueId, stringToInteger, stringToLong, toString
public String getPrivilege()
public void setPrivilege(String privilege)
public List<String> getResult()
Copyright © 2004–2020. All rights reserved.