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

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

本文整理了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

newRequest.removeHeader(headerName);

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

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

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

public void setAuthenticationHeaders(Request request) {
  SIPRequest sipRequest = (SIPRequest) request;
  String callId = sipRequest.getCallId().getCallId();
  request.removeHeader(AuthorizationHeader.NAME);
  Collection<AuthorizationHeader> authHeaders = this.cachedCredentials
      .getCachedAuthorizationHeaders(callId);
  if (authHeaders == null) {
    if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) 
      logger.logDebug(
        "Could not find authentication headers for " + callId);
    return;
  }
  for (AuthorizationHeader authHeader : authHeaders) {
    request.addHeader(authHeader);
  }
}

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

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

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

newRequest.removeHeader(ContactHeader.NAME);

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

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

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

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

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

((MessageExt)newRequest).setApplicationData(null);
newRequest.removeHeader(ViaHeader.NAME);	
newRequest.removeHeader(RecordRouteHeader.NAME);
        newRequest.removeHeader(ContactHeader.NAME);
        if(contactHeader != null) {
          newRequest.addHeader(contactHeader);
        newRequest.removeHeader(ContactHeader.NAME);

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

methodRequest.removeHeader(ViaHeader.NAME);
        ((MessageExt)request).setApplicationData(viaHeader.getTransport());
      request.removeHeader(ViaHeader.NAME);
      request.removeHeader(RouteHeader.NAME);
      request.removeHeader(PathHeader.NAME);
    } else {
      if(logger.isDebugEnabled()) {
request.removeHeader(RouteHeader.NAME);
while (routeHeaders.hasNext()) {
  RouteHeader routeHeader = routeHeaders.next();

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

newRequest.removeHeader(ViaHeader.NAME);	
newRequest.removeHeader(RecordRouteHeader.NAME);			
  newRequest.removeHeader(ContactHeader.NAME);

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

clonedRequest.removeHeader(ViaHeader.NAME);
  clonedRequest.removeHeader(RecordRouteHeader.NAME);
clonedRequest.removeHeader(ViaHeader.NAME);

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

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

相关文章