Examples of NodeDataWriter


Examples of org.apache.cxf.databinding.source.NodeDataWriter

                if (mode == Service.Mode.PAYLOAD) {
                    // Input is Source in payload mode, need to wrap it
                    // with a SOAPMessage
                    try {
                        obj = newSOAPMessage(null, ((SoapMessage)message).getVersion());
                        DataWriter<Node> dataWriter = new NodeDataWriter();
                        dataWriter.write(source, ((SOAPMessage)obj).getSOAPBody());
                    } catch (Exception e) {
                        throw new Fault(new org.apache.cxf.common.i18n.Message("EXCEPTION_WRITING_OBJECT",
                                                                               LOG), e);
                    }
                } else {
View Full Code Here

Examples of org.apache.cxf.databinding.source.NodeDataWriter

                if (mode == Service.Mode.PAYLOAD) {
                    // Input is Source in payload mode, need to wrap it
                    // with a SOAPMessage
                    try {
                        obj = newSOAPMessage(null, ((SoapMessage)message).getVersion());
                        DataWriter<Node> dataWriter = new NodeDataWriter();
                        dataWriter.write(source, ((SOAPMessage)obj).getSOAPBody());
                    } catch (Exception e) {
                        throw new Fault(new org.apache.cxf.common.i18n.Message("EXCEPTION_WRITING_OBJECT",
                                                                               LOG), e);
                    }
                } else {
View Full Code Here

Examples of org.apache.cxf.databinding.source.NodeDataWriter

                if (mode == Service.Mode.PAYLOAD) {
                    // Input is Source in payload mode, need to wrap it
                    // with a SOAPMessage
                    try {
                        obj = newSOAPMessage(null, ((SoapMessage)message).getVersion());
                        DataWriter<Node> dataWriter = new NodeDataWriter();
                        dataWriter.write(source, ((SOAPMessage)obj).getSOAPBody());
                    } catch (Exception e) {
                        throw new Fault(new org.apache.cxf.common.i18n.Message("EXCEPTION_WRITING_OBJECT",
                                                                               LOG), e);
                    }
                } else {
View Full Code Here

Examples of org.apache.cxf.databinding.source.NodeDataWriter

                if (mode == Service.Mode.PAYLOAD) {
                    // Input is Source in payload mode, need to wrap it
                    // with a SOAPMessage
                    try {
                        obj = newSOAPMessage(null, ((SoapMessage)message).getVersion());
                        DataWriter<Node> dataWriter = new NodeDataWriter();
                        dataWriter.write(source, ((SOAPMessage)obj).getSOAPBody());
                    } catch (Exception e) {
                        throw new Fault(new org.apache.cxf.common.i18n.Message("EXCEPTION_WRITING_OBJECT",
                                                                               LOG), e);
                    }
                } else {
View Full Code Here

Examples of org.apache.cxf.databinding.source.NodeDataWriter

        super();
        this.xsrReader = new XMLStreamDataReader();
        this.xswWriter = new XMLStreamDataWriter();

        this.nodeReader = new NodeDataReader();
        this.nodeWriter = new NodeDataWriter();
    }
View Full Code Here

Examples of org.apache.cxf.jaxb.io.NodeDataWriter

        if (c == XMLStreamWriter.class) {
            return (DataWriter<T>)new XMLStreamDataWriter(context);
        } else if (c == XMLEventWriter.class) {
            return (DataWriter<T>)new EventDataWriter(context);           
        } else if (c == Node.class) {
            return (DataWriter<T>)new NodeDataWriter(context);
        }
       
        return null;
    }
View Full Code Here

Examples of org.apache.cxf.jaxb.io.NodeDataWriter

        } else if (cls == XMLEventWriter.class) {
            return (DataWriter<T>)new EventDataWriter(this);           
        } else if (cls == Message.class) {
            return (DataWriter<T>)new MessageDataWriter(this);
        } else if (cls == Node.class) {
            return (DataWriter<T>)new NodeDataWriter(this);
        } else if (cls == SOAPBody.class) {
            return (DataWriter<T>)new SOAPBodyDataWriter(this);
        }
       
        return null;
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.