javax.sip.address.Address.toString()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(169)

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

Address.toString介绍

暂无

代码示例

代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl

public void writeExternal(ObjectOutput out) throws IOException {
  out.writeLong(calleeCSeq);
  out.writeLong(callerCSeq);
  out.writeUTF(calleeContact.toString());
  out.writeUTF(callerContact.toString());
  out.writeInt(calleeRouteSet.size());
  Iterator<javax.sip.address.Address> i = calleeRouteSet.iterator();
  while (i.hasNext()) {
    javax.sip.address.Address a = i.next();
    out.writeUTF(a.toString());
  }
  out.writeInt(callerRouteSet.size());
  i = callerRouteSet.iterator();
  while (i.hasNext()) {
    javax.sip.address.Address a = i.next();
    out.writeUTF(a.toString());
  }
  out.writeUTF(toHeader.getAddress().toString());
  out.writeUTF(toHeader.getTag());
  out.writeUTF(fromHeader.getAddress().toString());
  out.writeUTF(fromHeader.getTag());
  out.writeUTF(callId);
}

代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl

public String toString() {
  // Returns the value of this address as a String. The resulting string
  // must be a valid value of a SIP From or To header.
  // To/From are parametrable.
  StringBuffer retval = new StringBuffer();
  retval.append(address.toString());
  //excluding the parameters already present in the address uri
  if ( parameters!= null) {
    for(Map.Entry<java.lang.String, String> entry : parameters.entrySet()) {
      if((!(address.getURI() instanceof Parameters)) || ((Parameters)address.getURI()).getParameter(entry.getKey()) == null) {
        String value = entry.getValue();
        if(value != null && value.length() > 0) {
          retval.append(PARAM_SEPARATOR).append(entry.getKey()).append(PARAM_NAME_VALUE_SEPARATOR).append(value);
        } else {
          retval.append(PARAM_SEPARATOR).append(entry.getKey());
        }
      }
    }
  }
  return retval.toString();
}

代码示例来源:origin: org.jitsi/jain-sip-ri-ossonly

remoteTargetStringified = remoteTarget.toString();
remoteTarget = null;
remotePartyStringified = remoteParty.toString();
remoteParty = null;
localPartyStringified = localParty.toString();
localParty = null;

代码示例来源:origin: org.mobicents.ha.javax.sip/restcomm-jain-sip-ha-core

dialogMetaData.put(REMOTE_TARGET, getRemoteTarget().toString());
} else {
  dialogMetaData.put(REMOTE_TARGET, null);

代码示例来源:origin: org.mobicents.examples/call-controller2-sbbs

toAddress = getAddressFactory().createAddress(backupAddress.toString());

相关文章