Package org.apache.camel.dataformat.bindy.csv

Examples of org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat


    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                DataFormat format = new BindyCsvDataFormat(Employee.class);

                from("direct:unmarshal").unmarshal(format)
                        .split(simple("body")).to("mock:bindy-unmarshal");

                from("direct:marshal").marshal(format)
View Full Code Here


                from("direct:start")
                    .marshal().bindy(BindyType.Csv, "org.apache.camel.dataformat.bindy.csv2")
                    .to("direct:middle");

                from("direct:middle")
                    .unmarshal(new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.csv2"))
                    .to("mock:result");
            }
        };
    }
View Full Code Here

    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("direct:start")
                    .unmarshal(new BindyCsvDataFormat("org.apache.camel.dataformat.bindy.csv2"))
                    .to("mock:result");
            }
        };
    }
View Full Code Here

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                DataFormat format = new BindyCsvDataFormat(Employee.class);

                from("direct:unmarshal").unmarshal(format)
                        .split(simple("body")).to("mock:bindy-unmarshal");

                from("direct:marshal").marshal(format)
View Full Code Here

import org.apache.camel.spi.DataFormat;

public class CsvRouteBuilder extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        final DataFormat bindy = new BindyCsvDataFormat("org.camelcookbook.transformation.csv.model");

        from("direct:unmarshal").unmarshal(bindy);
        from("direct:marshal").marshal(bindy);
    }
View Full Code Here

import org.apache.camel.spi.DataFormat;

public class NormalizerRouteBuilder extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        final DataFormat bindy = new BindyCsvDataFormat("org.camelcookbook.transformation.csv.model");
        final DataFormat jaxb = new JaxbDataFormat("org.camelcookbook.transformation.myschema");

        final XmlJsonDataFormat xmlJsonFormat = new XmlJsonDataFormat();
        xmlJsonFormat.setRootName("bookstore");
        xmlJsonFormat.setElementName("book");
View Full Code Here

TOP

Related Classes of org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat

Copyright © 2018 www.massapicom. 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.