net.sf.asterisk.manager.response
Class CommandResponse

java.lang.Object
  extended by net.sf.asterisk.manager.response.ManagerResponse
      extended by net.sf.asterisk.manager.response.CommandResponse
All Implemented Interfaces:
java.io.Serializable

public class CommandResponse
extends ManagerResponse

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.

Version:
$Id: CommandResponse.java,v 1.2 2005/02/23 22:50:58 srt Exp $
Author:
srt
See Also:
CommandAction, Serialized Form

Field 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

result

protected java.util.List result
Constructor Detail

CommandResponse

public CommandResponse()
Method Detail

getResult

public java.util.List getResult()
Returns a List containing strings representing the lines returned by the CLI command.


setResult

public void setResult(java.util.List result)
Sets the result.



Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.