javax.xml.soap.SOAPHeader.removeChild()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(114)

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

SOAPHeader.removeChild介绍

暂无

代码示例

代码示例来源:origin: net.servicegrid/jp.go.nict.langrid.commons

@Override
public boolean remove(Object o) {
  return header.removeChild((Node)o) != null;
}

代码示例来源:origin: com.sun.xml.ws/rt

@Override
public Header remove(String nsUri, String localName) {
  SOAPHeader soapHeader = ensureSOAPHeader();
  if (soapHeader == null) {
    return null;
  }
  SOAPHeaderElement headerElem = find(nsUri, localName);
  if (headerElem == null) {
    return null;
  }
  headerElem = (SOAPHeaderElement) soapHeader.removeChild(headerElem);
  //it might have been a nonSAAJHeader - remove from that map
  removeNonSAAJHeader(headerElem);
  
  //remove it from understoodHeaders and notUnderstoodHeaders if present
  QName hdrName = (nsUri == null) ? new QName(localName) : new QName(nsUri, localName);
  if (understoodHeaders != null) {
    understoodHeaders.remove(hdrName);
  }
  removeNotUnderstood(hdrName);
  return new SAAJHeader(headerElem);
}

代码示例来源:origin: javaee/metro-jax-ws

@Override
public Header remove(String nsUri, String localName) {
  SOAPHeader soapHeader = ensureSOAPHeader();
  if (soapHeader == null) {
    return null;
  }
  SOAPHeaderElement headerElem = find(nsUri, localName);
  if (headerElem == null) {
    return null;
  }
  headerElem = (SOAPHeaderElement) soapHeader.removeChild(headerElem);
  //it might have been a nonSAAJHeader - remove from that map
  removeNonSAAJHeader(headerElem);
  
  //remove it from understoodHeaders and notUnderstoodHeaders if present
  QName hdrName = (nsUri == null) ? new QName(localName) : new QName(nsUri, localName);
  if (understoodHeaders != null) {
    understoodHeaders.remove(hdrName);
  }
  removeNotUnderstood(hdrName);
  return new SAAJHeader(headerElem);
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

@Override
public Header remove(String nsUri, String localName) {
  SOAPHeader soapHeader = ensureSOAPHeader();
  if (soapHeader == null) {
    return null;
  }
  SOAPHeaderElement headerElem = find(nsUri, localName);
  if (headerElem == null) {
    return null;
  }
  headerElem = (SOAPHeaderElement) soapHeader.removeChild(headerElem);
  //it might have been a nonSAAJHeader - remove from that map
  removeNonSAAJHeader(headerElem);
  
  //remove it from understoodHeaders and notUnderstoodHeaders if present
  QName hdrName = (nsUri == null) ? new QName(localName) : new QName(nsUri, localName);
  if (understoodHeaders != null) {
    understoodHeaders.remove(hdrName);
  }
  removeNotUnderstood(hdrName);
  return new SAAJHeader(headerElem);
}

代码示例来源:origin: apache/cxf

SAAJUtils.getHeader(saaj).removeChild(el);
  SAAJUtils.getHeader(saaj).appendChild(el);
} catch (SOAPException e) {

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-security

SAAJUtils.getHeader(saaj).removeChild(el);
  SAAJUtils.getHeader(saaj).appendChild(el);
} catch (SOAPException e) {

相关文章