Class CommandResponse

java.lang.Object
com.bytedesk.call.esl.client.transport.CommandResponse

public class CommandResponse extends Object
Result object to carry the results of a command sent to the FreeSWITCH Event Socket.
  • Field Details

    • command

      private final String command
    • replyText

      private final String replyText
    • response

      private final EslMessage response
    • success

      private final boolean success
  • Constructor Details

    • CommandResponse

      public CommandResponse(String command, EslMessage response)
  • Method Details

    • 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