|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.manager.response.ManagerResponse
org.asteriskjava.manager.response.CommandResponse
public class CommandResponse
Response that is received when sending a CommandAction.
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 Summary | |
---|---|
CommandResponse()
|
Method Summary | |
---|---|
java.lang.String |
getPrivilege()
Returns the AMI authorization class of this response. |
java.util.List<java.lang.String> |
getResult()
Returns a List of strings representing the lines returned by the CLI command. |
void |
setPrivilege(java.lang.String privilege)
|
void |
setResult(java.util.List<java.lang.String> result)
Sets the result. |
Methods inherited from class org.asteriskjava.manager.response.ManagerResponse |
---|
getActionId, getAttribute, getAttributes, getDateReceived, getEventList, getMessage, getResponse, getServer, getUniqueId, setActionId, setAttributes, setDateReceived, setEventList, setMessage, setResponse, setServer, setUniqueId, stringToInteger, stringToLong, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandResponse()
Method Detail |
---|
public java.lang.String getPrivilege()
public void setPrivilege(java.lang.String privilege)
public java.util.List<java.lang.String> getResult()
public void setResult(java.util.List<java.lang.String> result)
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |