org.asteriskjava.manager.response
Class CommandResponse
java.lang.Object
org.asteriskjava.manager.response.ManagerResponse
org.asteriskjava.manager.response.CommandResponse
- All Implemented Interfaces:
- java.io.Serializable
public class CommandResponse
- extends ManagerResponse
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.
- Version:
- $Id: CommandResponse.java 458 2006-07-05 22:32:02Z srt $
- Author:
- srt
- See Also:
CommandAction,
Serialized Form
|
Field Summary |
protected java.util.List<java.lang.String> |
result
|
|
Method Summary |
java.util.List<java.lang.String> |
getResult()
Returns a List containing strings representing the lines returned by the CLI command. |
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, 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 |
result
protected java.util.List<java.lang.String> result
CommandResponse
public CommandResponse()
getResult
public java.util.List<java.lang.String> getResult()
- Returns a List containing strings representing the lines returned by the CLI command.
setResult
public void setResult(java.util.List<java.lang.String> result)
- Sets the result.
Copyright © 2004-2007 Stefan Reuter. All Rights Reserved.