org.freeswitch.esl.client.transport
Class CommandResponse

java.lang.Object
  extended by org.freeswitch.esl.client.transport.CommandResponse

public class CommandResponse
extends Object

Result object to carry the results of a command sent to the FreeSWITCH Event Socket.

Author:
david varnes

Constructor Summary
CommandResponse(String command, EslMessage response)
           
 
Method Summary
 String getCommand()
           
 String getReplyText()
           
 EslMessage getResponse()
           
 boolean isOk()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandResponse

public CommandResponse(String command,
                       EslMessage response)
Method Detail

getCommand

public String getCommand()
Returns:
the original command sent to the server

isOk

public boolean isOk()
Returns:
true if and only if the response Reply-Text line starts with "+OK"

getReplyText

public String getReplyText()
Returns:
the full response Reply-Text line.

getResponse

public EslMessage getResponse()
Returns:
EslMessage the full response from the server


Copyright © 2009-2010 david varnes. All Rights Reserved.