jain.protocol.ip.mgcp.message.Notify.setRequestIdentifier()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中jain.protocol.ip.mgcp.message.Notify.setRequestIdentifier()方法的一些代码示例,展示了Notify.setRequestIdentifier()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Notify.setRequestIdentifier()方法的具体详情如下:
包路径:jain.protocol.ip.mgcp.message.Notify
类名称:Notify
方法名:setRequestIdentifier

Notify.setRequestIdentifier介绍

暂无

代码示例

代码示例来源:origin: org.mobicents.jain/mobicents-mgcp-impl

public void param(String name, String value) throws ParseException {
  if (name.equalsIgnoreCase("N")) {
    command.setNotifiedEntity(utils.decodeNotifiedEntity(value, false));
  } else if (name.equalsIgnoreCase("X")) {
    command.setRequestIdentifier(new RequestIdentifier(value));
  } else if (name.equalsIgnoreCase("O")) {
    command.setObservedEvents(utils.decodeEventNames(value));
  }
}

代码示例来源:origin: org.mobicents.media.client/mgcp-driver

public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException 
{
  if(name.getLength()==1)
  {
    switch(data[name.getOffset()])
    {
      case StringFunctions.LOW_N_BYTE:
      case StringFunctions.HIGH_N_BYTE:							
        command.setNotifiedEntity(NotifiedEntityHandler.decode(data,value.getOffset(),value.getLength(), false));
        break;
      case StringFunctions.LOW_X_BYTE:
      case StringFunctions.HIGH_X_BYTE:							
        command.setRequestIdentifier(new RequestIdentifier(new String(data,value.getOffset(),value.getLength())));
        break;
      case StringFunctions.LOW_O_BYTE:
      case StringFunctions.HIGH_O_BYTE:							
        command.setObservedEvents(EventNameHandler.decodeList(data,value.getOffset(),value.getLength()));
        break;
      default:
        logger.warn("Unidentified NTFY Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));
        break;
    }
  }
  else
    logger.warn("Unidentified NTFY Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));					
}

代码示例来源:origin: ua.mobius.media.client/mgcp-driver

public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException 
{
  if(name.getLength()==1)
  {
    switch(data[name.getOffset()])
    {
      case StringFunctions.LOW_N_BYTE:
      case StringFunctions.HIGH_N_BYTE:							
        command.setNotifiedEntity(NotifiedEntityHandler.decode(data,value.getOffset(),value.getLength(), false));
        break;
      case StringFunctions.LOW_X_BYTE:
      case StringFunctions.HIGH_X_BYTE:							
        command.setRequestIdentifier(new RequestIdentifier(new String(data,value.getOffset(),value.getLength())));
        break;
      case StringFunctions.LOW_O_BYTE:
      case StringFunctions.HIGH_O_BYTE:							
        command.setObservedEvents(EventNameHandler.decodeList(data,value.getOffset(),value.getLength()));
        break;
      default:
        logger.warn("Unidentified NTFY Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));
        break;
    }
  }
  else
    logger.warn("Unidentified NTFY Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));					
}

相关文章