com.sun.xml.internal.messaging.saaj.soap.SOAPDocument Java Examples
The following examples show how to use
com.sun.xml.internal.messaging.saaj.soap.SOAPDocument.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HeaderImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalName(), name.getPrefix(), name.getURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #2
Source File: HeaderImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public SOAPHeaderElement addHeaderElement(QName name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalPart(), name.getPrefix(), name.getNamespaceURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #3
Source File: HeaderImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalName(), name.getPrefix(), name.getURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #4
Source File: HeaderImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public SOAPHeaderElement addHeaderElement(QName name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalPart(), name.getPrefix(), name.getNamespaceURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #5
Source File: HeaderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public SOAPHeaderElement addHeaderElement(QName name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalPart(), name.getPrefix(), name.getNamespaceURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #6
Source File: HeaderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalName(), name.getPrefix(), name.getURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #7
Source File: HeaderImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalName(), name.getPrefix(), name.getURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #8
Source File: HeaderImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public SOAPHeaderElement addHeaderElement(QName name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalPart(), name.getPrefix(), name.getNamespaceURI()); if (newHeaderElement == null || !(newHeaderElement instanceof SOAPHeaderElement)) { newHeaderElement = createHeaderElement(name); } // header elements must be namespace qualified // check that URI is not empty, ensuring that the element is NS qualified. String uri = newHeaderElement.getElementQName().getNamespaceURI(); if ((uri == null) || ("").equals(uri)) { log.severe("SAAJ0131.impl.header.elems.ns.qualified"); throw new SOAPExceptionImpl("HeaderElements must be namespace qualified"); } addNode(newHeaderElement); return (SOAPHeaderElement) newHeaderElement; }
Example #9
Source File: Header1_2Impl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected SOAPHeaderElement createHeaderElement(QName name) throws SOAPException { String uri = name.getNamespaceURI(); if (uri == null || uri.equals("")) { log.severe("SAAJ0413.ver1_2.header.elems.must.be.ns.qualified"); throw new SOAPExceptionImpl("SOAP 1.2 header elements must be namespace qualified"); } return new HeaderElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #10
Source File: Header1_2Impl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected SOAPHeaderElement createHeaderElement(QName name) throws SOAPException { String uri = name.getNamespaceURI(); if (uri == null || uri.equals("")) { log.severe("SAAJ0413.ver1_2.header.elems.must.be.ns.qualified"); throw new SOAPExceptionImpl("SOAP 1.2 header elements must be namespace qualified"); } return new HeaderElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #11
Source File: Header1_2Impl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected SOAPHeaderElement createHeaderElement(Name name) throws SOAPException { String uri = name.getURI(); if (uri == null || uri.equals("")) { log.severe("SAAJ0413.ver1_2.header.elems.must.be.ns.qualified"); throw new SOAPExceptionImpl("SOAP 1.2 header elements must be namespace qualified"); } return new HeaderElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #12
Source File: BodyImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public SOAPBodyElement addBodyElement(Name name) throws SOAPException { SOAPBodyElement newBodyElement = (SOAPBodyElement) ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalName(), name.getPrefix(), name.getURI()); if (newBodyElement == null) { newBodyElement = createBodyElement(name); } addNode(newBodyElement); return newBodyElement; }
Example #13
Source File: ElementImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public SOAPElement getParentElement() { Node parentNode = getParentNode(); if (parentNode instanceof SOAPDocument) { return null; } return (SOAPElement) parentNode; }
Example #14
Source File: Header1_2Impl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override protected SOAPHeaderElement createHeaderElement(QName name) throws SOAPException { String uri = name.getNamespaceURI(); if (uri == null || uri.equals("")) { log.severe("SAAJ0413.ver1_2.header.elems.must.be.ns.qualified"); throw new SOAPExceptionImpl("SOAP 1.2 header elements must be namespace qualified"); } return new HeaderElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #15
Source File: ElementImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Document getOwnerDocument() { Document doc = super.getOwnerDocument(); if (doc instanceof SOAPDocument) return ((SOAPDocument) doc).getDocument(); else return doc; }
Example #16
Source File: Header1_2Impl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected SOAPHeaderElement createHeaderElement(Name name) throws SOAPException { String uri = name.getURI(); if (uri == null || uri.equals("")) { log.severe("SAAJ0413.ver1_2.header.elems.must.be.ns.qualified"); throw new SOAPExceptionImpl("SOAP 1.2 header elements must be namespace qualified"); } return new HeaderElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #17
Source File: Header1_2Impl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected SOAPHeaderElement createHeaderElement(QName name) throws SOAPException { String uri = name.getNamespaceURI(); if (uri == null || uri.equals("")) { log.severe("SAAJ0413.ver1_2.header.elems.must.be.ns.qualified"); throw new SOAPExceptionImpl("SOAP 1.2 header elements must be namespace qualified"); } return new HeaderElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #18
Source File: ElementImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Document getOwnerDocument() { Document doc = super.getOwnerDocument(); if (doc instanceof SOAPDocument) return ((SOAPDocument) doc).getDocument(); else return doc; }
Example #19
Source File: ElementImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Document getOwnerDocument() { Document doc = super.getOwnerDocument(); if (doc instanceof SOAPDocument) return ((SOAPDocument) doc).getDocument(); else return doc; }
Example #20
Source File: ElementImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public SOAPElement getParentElement() { Node parentNode = getParentNode(); if (parentNode instanceof SOAPDocument) { return null; } return (SOAPElement) parentNode; }
Example #21
Source File: BodyImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public SOAPBodyElement addBodyElement(Name name) throws SOAPException { SOAPBodyElement newBodyElement = (SOAPBodyElement) ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), name.getLocalName(), name.getPrefix(), name.getURI()); if (newBodyElement == null) { newBodyElement = createBodyElement(name); } addNode(newBodyElement); return newBodyElement; }
Example #22
Source File: BodyImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public SOAPBodyElement addBodyElement(QName qname) throws SOAPException { SOAPBodyElement newBodyElement = (SOAPBodyElement) ElementFactory.createNamedElement( ((SOAPDocument) getOwnerDocument()).getDocument(), qname.getLocalPart(), qname.getPrefix(), qname.getNamespaceURI()); if (newBodyElement == null) { newBodyElement = createBodyElement(qname); } addNode(newBodyElement); return newBodyElement; }
Example #23
Source File: Header1_2Impl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected SOAPHeaderElement createHeaderElement(Name name) throws SOAPException { String uri = name.getURI(); if (uri == null || uri.equals("")) { log.severe("SAAJ0413.ver1_2.header.elems.must.be.ns.qualified"); throw new SOAPExceptionImpl("SOAP 1.2 header elements must be namespace qualified"); } return new HeaderElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #24
Source File: ElementImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public SOAPElement getParentElement() { Node parentNode = getParentNode(); if (parentNode instanceof SOAPDocument) { return null; } return (SOAPElement) parentNode; }
Example #25
Source File: Detail1_2Impl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected DetailEntry createDetailEntry(QName name) { return new DetailEntry1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); }
Example #26
Source File: Fault1_1Impl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected DetailImpl createDetail() { return new Detail1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument()); }
Example #27
Source File: Fault1_2Impl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected DetailImpl createDetail() { return new Detail1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument()); }
Example #28
Source File: Body1_1Impl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override protected SOAPFault createFaultElement() { return new Fault1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), getPrefix()); }
Example #29
Source File: Fault1_2Impl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected FaultElementImpl createSOAPFaultElement(QName qname) { return new FaultElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), qname); }
Example #30
Source File: Fault1_2Impl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override protected FaultElementImpl createSOAPFaultElement(QName qname) { return new FaultElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), qname); }