Class EnvelopeImpl

    • Constructor Detail

      • EnvelopeImpl

        protected EnvelopeImpl​(SOAPDocumentImpl ownerDoc,
                               javax.xml.soap.Name name)
      • EnvelopeImpl

        protected EnvelopeImpl​(SOAPDocumentImpl ownerDoc,
                               NameImpl name,
                               boolean createHeader,
                               boolean createBody)
                        throws javax.xml.soap.SOAPException
        Throws:
        javax.xml.soap.SOAPException
    • Method Detail

      • getHeaderName

        protected abstract NameImpl getHeaderName​(String prefix)
      • getBodyName

        protected abstract NameImpl getBodyName​(String prefix)
      • addHeader

        public javax.xml.soap.SOAPHeader addHeader()
                                            throws javax.xml.soap.SOAPException
        Specified by:
        addHeader in interface javax.xml.soap.SOAPEnvelope
        Throws:
        javax.xml.soap.SOAPException
      • addHeader

        public javax.xml.soap.SOAPHeader addHeader​(String prefix)
                                            throws javax.xml.soap.SOAPException
        Throws:
        javax.xml.soap.SOAPException
      • lookForHeader

        protected void lookForHeader()
                              throws javax.xml.soap.SOAPException
        Throws:
        javax.xml.soap.SOAPException
      • getHeader

        public javax.xml.soap.SOAPHeader getHeader()
                                            throws javax.xml.soap.SOAPException
        Specified by:
        getHeader in interface javax.xml.soap.SOAPEnvelope
        Throws:
        javax.xml.soap.SOAPException
      • lookForBody

        protected void lookForBody()
                            throws javax.xml.soap.SOAPException
        Throws:
        javax.xml.soap.SOAPException
      • addBody

        public javax.xml.soap.SOAPBody addBody()
                                        throws javax.xml.soap.SOAPException
        Specified by:
        addBody in interface javax.xml.soap.SOAPEnvelope
        Throws:
        javax.xml.soap.SOAPException
      • addBody

        public javax.xml.soap.SOAPBody addBody​(String prefix)
                                        throws javax.xml.soap.SOAPException
        Throws:
        javax.xml.soap.SOAPException
      • addElement

        protected javax.xml.soap.SOAPElement addElement​(javax.xml.soap.Name name)
                                                 throws javax.xml.soap.SOAPException
        Overrides:
        addElement in class ElementImpl
        Throws:
        javax.xml.soap.SOAPException
      • addElement

        protected javax.xml.soap.SOAPElement addElement​(QName name)
                                                 throws javax.xml.soap.SOAPException
        Overrides:
        addElement in class ElementImpl
        Throws:
        javax.xml.soap.SOAPException
      • getBody

        public javax.xml.soap.SOAPBody getBody()
                                        throws javax.xml.soap.SOAPException
        Specified by:
        getBody in interface javax.xml.soap.SOAPEnvelope
        Throws:
        javax.xml.soap.SOAPException
      • getContent

        public Source getContent()
        Description copied from interface: Envelope
        Get the content as a JAXP Source.
        Specified by:
        getContent in interface Envelope
        Returns:
        source
      • createName

        public javax.xml.soap.Name createName​(String localName,
                                              String prefix,
                                              String uri)
                                       throws javax.xml.soap.SOAPException
        Specified by:
        createName in interface javax.xml.soap.SOAPEnvelope
        Throws:
        javax.xml.soap.SOAPException
      • createName

        public javax.xml.soap.Name createName​(String localName,
                                              String prefix)
                                       throws javax.xml.soap.SOAPException
        Throws:
        javax.xml.soap.SOAPException
      • createName

        public javax.xml.soap.Name createName​(String localName)
                                       throws javax.xml.soap.SOAPException
        Specified by:
        createName in interface javax.xml.soap.SOAPEnvelope
        Throws:
        javax.xml.soap.SOAPException
      • setOmitXmlDecl

        public void setOmitXmlDecl​(String value)
      • setXmlDecl

        public void setXmlDecl​(String value)
      • setCharsetEncoding

        public void setCharsetEncoding​(String value)
      • output

        public void output​(OutputStream out,
                           boolean isFastInfoset)
                    throws IOException
        Serialize to FI if boolean parameter set.
        Specified by:
        output in interface Envelope
        Parameters:
        out - output stream
        isFastInfoset - true if it is fast infoset.
        Throws:
        IOException - in case of an I/O error.
      • setElementQName

        public javax.xml.soap.SOAPElement setElementQName​(QName newName)
                                                   throws javax.xml.soap.SOAPException
        Specified by:
        setElementQName in interface javax.xml.soap.SOAPElement
        Overrides:
        setElementQName in class ElementImpl
        Throws:
        javax.xml.soap.SOAPException
      • setStaxBridge

        public void setStaxBridge​(StaxBridge bridge)
                           throws javax.xml.soap.SOAPException
        Specified by:
        setStaxBridge in interface Envelope
        Throws:
        javax.xml.soap.SOAPException
      • getStaxBridge

        public StaxBridge getStaxBridge()
                                 throws javax.xml.soap.SOAPException
        Specified by:
        getStaxBridge in interface Envelope
        Throws:
        javax.xml.soap.SOAPException
      • getPayloadQName

        public QName getPayloadQName()
                              throws javax.xml.soap.SOAPException
        Description copied from interface: LazyEnvelope
        Retrieve payload qname without materializing its contents
        Specified by:
        getPayloadQName in interface LazyEnvelope
        Returns:
        QName
        Throws:
        javax.xml.soap.SOAPException - in case of an error
      • getPayloadAttributeValue

        public String getPayloadAttributeValue​(String localName)
                                        throws javax.xml.soap.SOAPException
        Description copied from interface: LazyEnvelope
        Retrieve payload attribute value without materializing its contents
        Specified by:
        getPayloadAttributeValue in interface LazyEnvelope
        Parameters:
        localName - local name
        Returns:
        payload attribute value
        Throws:
        javax.xml.soap.SOAPException - in case of an error
      • getPayloadAttributeValue

        public String getPayloadAttributeValue​(QName qName)
                                        throws javax.xml.soap.SOAPException
        Description copied from interface: LazyEnvelope
        Retrieve payload attribute value without materializing its contents
        Specified by:
        getPayloadAttributeValue in interface LazyEnvelope
        Parameters:
        qName - QName
        Returns:
        payload attribute value
        Throws:
        javax.xml.soap.SOAPException - in case of an error