@Override public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws DOMException { handleNewSource(); return document.appendChild(newChild); }
@Override public org.w3c.dom.Node replaceChild( org.w3c.dom.Node arg0, org.w3c.dom.Node arg1) throws DOMException { handleNewSource(); return document.replaceChild(arg0, arg1); }
AttachmentPart nextMatch() { while (iter.hasNext()) { AttachmentPartImpl ap = (AttachmentPartImpl) iter.next(); if (ap.hasAllHeaders(headers)) return ap; } return null; }
@Override public NodeList getElementsByTagNameNS( String namespaceURI, String localName) { handleNewSource(); return document.getElementsByTagNameNS(namespaceURI, localName); }
@Override public Element getElementById(String elementId) { handleNewSource(); return document.getElementById(elementId); } @Override
@Override public org.w3c.dom.Node cloneNode(boolean deep) { handleNewSource(); return document.cloneNode(deep); }
private void initCharsetProperty(ContentType contentType) { String charset = contentType.getParameter("charset"); if (charset != null) { ((SOAPPartImpl) getSOAPPart()).setSourceCharsetEncoding(charset); if(!charset.equalsIgnoreCase("utf-8")) setProperty(CHARACTER_SET_ENCODING, charset); } }
@Override public NodeList getChildNodes() { handleNewSource(); return document.getChildNodes(); }
@Override public org.w3c.dom.Node getFirstChild() { handleNewSource(); return document.getFirstChild(); }
@Override public org.w3c.dom.Node getLastChild() { handleNewSource(); return document.getLastChild(); }
@Override public org.w3c.dom.Node getNextSibling() { handleNewSource(); return document.getNextSibling(); }
@Override public Element getDocumentElement() { // This had better be an Envelope! getSOAPPart().doGetDocumentElement(); return doGetDocumentElement(); }
@Override public EntityReference createEntityReference(String name) throws DOMException { return document.createEntityReference(name); }
@Override public org.w3c.dom.Node importNode( org.w3c.dom.Node importedNode, boolean deep) throws DOMException { handleNewSource(); return document.importNode(importedNode, deep); }
@Override public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { return document.createAttributeNS(namespaceURI, qualifiedName); }
@Override public org.w3c.dom.Node removeChild(org.w3c.dom.Node arg0) throws DOMException { handleNewSource(); return document.removeChild(arg0); }
@Override public Element getDocumentElement() { // If there is no SOAP envelope already created, then create // one from a source if one exists. If there is a newer source // then use that source. try { getEnvelope(); } catch (SOAPException e) { } return document.getDocumentElement(); }
@Override public boolean hasChildNodes() { handleNewSource(); return document.hasChildNodes(); }
@Override public void normalize() { handleNewSource(); document.normalize(); }
@Override public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException { return document.compareDocumentPosition(other); }