|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.response.ManagerResponse net.sf.asterisk.manager.response.CommandResponse
public class CommandResponse
Corresponds to 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 FormField Summary | |
---|---|
protected java.util.List |
result
|
Constructor Summary | |
---|---|
CommandResponse()
|
Method Summary | |
---|---|
java.util.List |
getResult()
Returns a List containing strings representing the lines returned by the CLI command. |
void |
setResult(java.util.List result)
Sets the result. |
Methods inherited from class net.sf.asterisk.manager.response.ManagerResponse |
---|
getActionId, getAttribute, getAttributes, getDateReceived, getMessage, getResponse, getUniqueId, setActionId, setAttributes, setDateReceived, setMessage, setResponse, setUniqueId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List result
Constructor Detail |
---|
public CommandResponse()
Method Detail |
---|
public java.util.List getResult()
public void setResult(java.util.List result)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |