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

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

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

Address.setDisplayName介绍

暂无

代码示例

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

public void setDisplayName(String name) {
  if(SipServletMessageImpl.isSystemHeader(isModifiable)) {
    throw new IllegalStateException("this Address is used in a context where it cannot be modified");
  }
  try {
    getAddress().setDisplayName(name);
  } catch (ParseException e) {
    throw new IllegalArgumentException("illegal name ", e);
  }
}

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

public Address createAddress(URI uri, String displayName) {
  try {
    if (logger.isDebugEnabled()) {
      logger.debug("Creating Address from URI[" + uri.toString()
          + "] with display name[" + displayName + "]");
    }
    javax.sip.address.Address address = SipFactoryImpl.addressFactory
        .createAddress(((URIImpl) uri).getURI());
    address.setDisplayName(displayName);
    return new AddressImpl(address, null, ModifiableRule.Modifiable);
  } catch (ParseException e) {
    throw new IllegalArgumentException(e);
  }
}

代码示例来源:origin: org.apache.camel/camel-sip

private void createContactHeader() throws ParseException {
  SipURI contactURI = addressFactory.createSipURI(getFromUser(), getFromHost());
  contactURI.setTransportParam(getTransport());
  contactURI.setPort(Integer.valueOf(getFromPort()).intValue());
  Address contactAddress = addressFactory.createAddress(contactURI);
  // Add the contact address.
  contactAddress.setDisplayName(getFromUser());
  contactHeader = headerFactory.createContactHeader(contactAddress);
}

代码示例来源:origin: org.apache.camel/camel-sip

private void createFromHeader() throws ParseException {
  SipURI fromAddress = getAddressFactory().createSipURI(getFromUser(), getFromHost());
  fromAddress.setPort(Integer.valueOf(getFromPort()).intValue());
  Address fromNameAddress = addressFactory.createAddress(fromAddress);
  fromNameAddress.setDisplayName(getFromUser());
  
  setFromHeader(headerFactory.createFromHeader(fromNameAddress, getFromUser() + "_Header"));        
}

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

contactAddress.setDisplayName(displayName);

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

newContactHeader.getAddress().setDisplayName(newRequestContactHeader.getAddress().getDisplayName());

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

try {
  uri.setUser(username);
  ch.getAddress().setDisplayName(null);
} catch (ParseException e) {
  throw new IllegalStateException("Can't create contact header user part with MD5", e);

代码示例来源:origin: org.apache.camel/camel-sip

private void createToHeader() throws ParseException {
  SipURI toAddress = getAddressFactory().createSipURI(getToUser(), getToHost());
  toAddress.setPort(getToPort());
  Address toNameAddress = addressFactory.createAddress(toAddress);
  toNameAddress.setDisplayName(getToUser());
  
  setToHeader(headerFactory.createToHeader(toNameAddress, getToUser() + "_Header"));
}

代码示例来源:origin: org.mobicents.servers.diameter.examples/openims-example-sbb

toAddress.setDisplayName(toAddressString);
ToHeader toHeader = sipHeaderFactory.createToHeader(toAddress, null);
fromNameAddress.setDisplayName("Missed Calls");
FromHeader fromHeader = sipHeaderFactory.createFromHeader(fromNameAddress, "12345SomeTagID6789");

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

javax.sip.address.Address contactAddress = addressFactory.createAddress(sipURI);
if(displayName != null && displayName.length() > 0) {
  contactAddress.setDisplayName(displayName);

代码示例来源:origin: org.mobicents.examples/converged-demo-orderdeliverdate-sbb

callerAddress.setDisplayName(callerSip);

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

javax.sip.address.Address contactAddress = sipFactoryImpl.getAddressFactory().createAddress(sipURI);
if(diaplayName != null && diaplayName.length() > 0) {
  contactAddress.setDisplayName(diaplayName);

代码示例来源:origin: org.mobicents.servers.jainslee.enablers/sip-subscription-client-sbb

Address from = addressFactory.createAddress(subscriptionData.getSubscriberURI());
if (subscriptionData.getSubscriberDisplayName() != null) {
  from.setDisplayName(subscriptionData.getSubscriberDisplayName());

代码示例来源:origin: org.mobicents.examples/sip-wake-up-sbb

Address fromNameAddress = addressFactory
    .createAddress("sip:wakeup@restcomm.com");
fromNameAddress.setDisplayName("Wake Up Service");
HeaderFactory headerFactory = sipProvider.getHeaderFactory();
FromHeader fromHeader = headerFactory.createFromHeader(

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

fromAddress.setDisplayName(from.getDisplayName());		
  .createAddress(((URIImpl)to.getURI()).getURI());
toAddress.setDisplayName(to.getDisplayName());
    javax.sip.address.Address contactAddress = SipFactoryImpl.addressFactory.createAddress(sipURI);
    if(displayName != null && displayName.length() > 0) {
      contactAddress.setDisplayName(displayName);

相关文章