java.lang.Object
link.thingscloud.freeswitch.esl.transport.SendEvent

public class SendEvent extends Object

SendEvent class.

版本:
1.0.0
作者:
: zhouhailin
  • 构造器详细资料

    • SendEvent

      public SendEvent(String name)
      Constructor for use with outbound socket client only. This client mode does not need a call UUID for context.
      参数:
      name - part of line
  • 方法详细资料

    • addLine

      public SendEvent addLine(String name, String value)
      A generic method to add a message line. The constructed line in the sent message will be in the form:
         name: value
       
      参数:
      name - part of line
      value - part of line
      返回:
      a SendEvent object.
    • addBody

      public void addBody(String line)
      A generic method to add a message line. The constructed line in the sent message will be in the form:
         name: value
       
      参数:
      line - part of line
    • getMsgLines

      public List<String> getMsgLines()
      The list of strings that make up the message to send to FreeSWITCH.
      返回:
      list of strings, as they were added to this message.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object