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

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

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

Request.removeHeader介绍

暂无

代码示例

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

  1. newRequest.removeHeader(headerName);

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

  1. request.removeHeader(ViaHeader.NAME);
  2. request.removeHeader(ContactHeader.NAME);

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

  1. public void setAuthenticationHeaders(Request request) {
  2. SIPRequest sipRequest = (SIPRequest) request;
  3. String callId = sipRequest.getCallId().getCallId();
  4. request.removeHeader(AuthorizationHeader.NAME);
  5. Collection<AuthorizationHeader> authHeaders = this.cachedCredentials
  6. .getCachedAuthorizationHeaders(callId);
  7. if (authHeaders == null) {
  8. if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG))
  9. logger.logDebug(
  10. "Could not find authentication headers for " + callId);
  11. return;
  12. }
  13. for (AuthorizationHeader authHeader : authHeaders) {
  14. request.addHeader(authHeader);
  15. }
  16. }

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

  1. ackRequest.removeHeader(ViaHeader.NAME);
  2. if(logger.isInfoEnabled()) {
  3. logger.info("ackRequest just created " + ackRequest);
  4. ackRequest.removeHeader(RouteHeader.NAME);
  5. while (routeHeaders.hasNext()) {
  6. RouteHeader routeHeader = routeHeaders.next();

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

  1. newRequest.removeHeader(ContactHeader.NAME);

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

  1. subsequentRequest.removeHeader(ContactHeader.NAME);
  2. setContactHeaders(contactHeaderSet, newSubsequentServletRequest, contactHeader);

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

  1. prackRequest.removeHeader(ViaHeader.NAME);
  2. prackRequest.removeHeader(RouteHeader.NAME);
  3. while (routeHeaders.hasNext()) {
  4. RouteHeader routeHeader = routeHeaders.next();

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

  1. ((MessageExt)newRequest).setApplicationData(null);
  2. newRequest.removeHeader(ViaHeader.NAME);
  3. newRequest.removeHeader(RecordRouteHeader.NAME);
  4. newRequest.removeHeader(ContactHeader.NAME);
  5. if(contactHeader != null) {
  6. newRequest.addHeader(contactHeader);
  7. newRequest.removeHeader(ContactHeader.NAME);

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

  1. methodRequest.removeHeader(ViaHeader.NAME);
  2. ((MessageExt)request).setApplicationData(viaHeader.getTransport());
  3. request.removeHeader(ViaHeader.NAME);
  4. request.removeHeader(RouteHeader.NAME);
  5. request.removeHeader(PathHeader.NAME);
  6. } else {
  7. if(logger.isDebugEnabled()) {
  8. request.removeHeader(RouteHeader.NAME);
  9. while (routeHeaders.hasNext()) {
  10. RouteHeader routeHeader = routeHeaders.next();

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

  1. newRequest.removeHeader(ViaHeader.NAME);
  2. newRequest.removeHeader(RecordRouteHeader.NAME);
  3. newRequest.removeHeader(ContactHeader.NAME);

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

  1. clonedRequest.removeHeader(ViaHeader.NAME);
  2. clonedRequest.removeHeader(RecordRouteHeader.NAME);
  3. clonedRequest.removeHeader(ViaHeader.NAME);

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

  1. reoriginatedRequest.removeHeader(AuthorizationHeader.NAME);
  2. reoriginatedRequest.removeHeader(ProxyAuthorizationHeader.NAME);

相关文章