本文整理了Java中javax.sip.message.Request.setHeader
方法的一些代码示例,展示了Request.setHeader
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setHeader
方法的具体详情如下:
包路径:javax.sip.message.Request
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!