org.freeswitch.esl.client.transport
Class CommandResponse
java.lang.Object
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
CommandResponse
public CommandResponse(String command,
EslMessage response)
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.