Examples of DOMStreamReader


Examples of com.sun.xml.ws.streaming.DOMStreamReader

    public String getLocalPart() {
        return localName;
    }

    public XMLStreamReader readHeader() throws XMLStreamException {
        DOMStreamReader r = new DOMStreamReader(node);
        r.nextTag();    // move ahead to the start tag
        return r;
    }
View Full Code Here

Examples of com.sun.xml.ws.streaming.DOMStreamReader

    }

    public XMLStreamReader readPayload() throws XMLStreamException {
        access();
        if (payload != null) {
            DOMStreamReader dss = new DOMStreamReader();
            dss.setCurrentNode(payload);
            dss.nextTag();
            assert dss.getEventType() == XMLStreamReader.START_ELEMENT;
            return dss;
        }
        return null;
    }
View Full Code Here

Examples of com.sun.xml.ws.streaming.DOMStreamReader

    protected XMLStreamReader getXMLStreamReader(SOAPElement soapElement) {
        return null;
    }
   
    protected XMLStreamReader createXMLStreamReader(SOAPElement soapElement) {
        DOMStreamReader dss = new DOMStreamReader();
        dss.setCurrentNode(soapElement);
        return dss;
    }
View Full Code Here

Examples of com.sun.xml.ws.streaming.DOMStreamReader

        return bridge.unmarshal(payload,
            hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
    }

    public XMLStreamReader readPayload() throws XMLStreamException {
        DOMStreamReader dss = new DOMStreamReader();
        dss.setCurrentNode(payload);
        dss.nextTag();
        assert dss.getEventType()==XMLStreamReader.START_ELEMENT;
        return dss;
    }
View Full Code Here

Examples of com.sun.xml.ws.streaming.DOMStreamReader

    protected XMLStreamReader getXMLStreamReader(SOAPElement soapElement) {
        return null;
    }
   
    protected XMLStreamReader createXMLStreamReader(SOAPElement soapElement) {
        DOMStreamReader dss = new DOMStreamReader();
        dss.setCurrentNode(soapElement);
        return dss;
    }
View Full Code Here

Examples of com.sun.xml.ws.streaming.DOMStreamReader

    public String getLocalPart() {
        return localName;
    }

    public XMLStreamReader readHeader() throws XMLStreamException {
        DOMStreamReader r = new DOMStreamReader(node);
        r.nextTag();    // move ahead to the start tag
        return r;
    }
View Full Code Here

Examples of com.sun.xml.ws.streaming.DOMStreamReader

        return bridge.unmarshal(payload,
            hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
    }

    public XMLStreamReader readPayload() throws XMLStreamException {
        DOMStreamReader dss = new DOMStreamReader();
        dss.setCurrentNode(payload);
        dss.nextTag();
        assert dss.getEventType()==XMLStreamReader.START_ELEMENT;
        return dss;
    }
View Full Code Here

Examples of org.apache.servicemix.soap.util.stax.DOMStreamReader

            if (message.getSoapHeaders().size() > 0) {
                StaxUtil.writeStartElement(writer, soapVersion.getHeader());
                for (Iterator it = message.getSoapHeaders().values().iterator(); it.hasNext();) {
                    DocumentFragment df = (DocumentFragment) it.next();
                    Element e = DomUtil.getFirstChildElement(df);
                    StaxUtil.copy(new DOMStreamReader(e), writer);
                }
                writer.writeEndElement();
            }
            // Write Body
            StaxUtil.writeStartElement(writer, soapVersion.getBody());
View Full Code Here

Examples of org.apache.servicemix.soap.util.stax.DOMStreamReader

    public void handleMessage(Message message) {
        try {
            XMLStreamReader reader;
            Document doc = message.getContent(Document.class);
            if (doc != null) {
                reader = new DOMStreamReader(doc.getDocumentElement());
            } else {
                InputStream is = message.getContent(InputStream.class);
                if (is != null) {
                    // TODO: where does encoding constant go?
                    String encoding = (String) message.get(ENCODING);
View Full Code Here

Examples of org.jvnet.staxex.util.DOMStreamReader

      StaxBridge readBridge = this.getStaxBridge();
      if (readBridge != null && readBridge instanceof StaxLazySourceBridge) {
//          StaxSoapWriteBridge writingBridge =  new StaxSoapWriteBridge(this);
//          writingBridge.write(writer);    
          final String soapEnvNS = this.getNamespaceURI();
          final DOMStreamReader reader = new DOMStreamReader(this);
          XMLStreamReaderToXMLStreamWriter writingBridge =  new XMLStreamReaderToXMLStreamWriter();         
          writingBridge.bridge( new XMLStreamReaderToXMLStreamWriter.Breakpoint(reader, writer) {
            public boolean proceedAfterStartElement()  {
              if ("Body".equals(reader.getLocalName()) && soapEnvNS.equals(reader.getNamespaceURI()) ){
                return false;
              } else
                return true;
            }
            });//bridgeToBodyStartTag
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.