javax.sip.message.Request.setHeader()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(250)

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

Request.setHeader介绍

暂无

代码示例

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

newRequest.addHeader(header);
} else {
  newRequest.setHeader(header);

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

request.setHeader(SipFactoryImpl.headerFactory.createMaxForwardsHeader(70));

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

notifyRequest.setHeader(eventHeader);
notifyRequest.setHeader(sipPresenceAgent.getConfiguration().getContactHeader());
notifyRequest.setContent(body, sipPresenceAgent.getConfiguration().getContentTypeHeader());
LOG.debug("Sending the following NOTIFY request to Subscriber: {}", notifyRequest);

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

newRequest.setHeader(callIdHeader);
if(logger.isDebugEnabled()) {
  logger.debug("not reusing same call id, new call id is " + callIdHeader);

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

contactHeader = JainSipUtils.createContactHeader(sipFactory.getSipNetworkInterfaceManager(), methodRequest, displayName, userName, outboundInterface);
  methodRequest.setHeader(contactHeader);
} catch (Exception e) {
  logger.error("Can not create contact header for subsequent request " + method + " for session " + key, e);

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

newRequest.setHeader(callIdHeader);
  } else if(JainSipUtils.CONTACT_HEADER_METHODS.contains(method)) {
    newRequest.setHeader(contactHeader);

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

Address contactAddress = addressFactory.createAddress(contactURI);
ContactHeader contactHeader = headerFactory.createContactHeader(contactAddress);
request.setHeader(contactHeader);

相关文章