Examples of XmlJsonDataFormat


Examples of org.apache.camel.dataformat.xmljson.XmlJsonDataFormat

        from("direct:unmarshal")
            .unmarshal().xmljson()
            .to("mock:unmarshalResult");

        XmlJsonDataFormat xmlJsonFormat = new XmlJsonDataFormat();
        xmlJsonFormat.setRootName("bookstore");
        xmlJsonFormat.setElementName("book");
        xmlJsonFormat.setExpandableProperties(Arrays.asList("author", "author"));

        from("direct:unmarshalBookstore")
            .unmarshal(xmlJsonFormat)
            .to("mock:unmarshalBookstoreResult");
    }
View Full Code Here

Examples of org.apache.camel.dataformat.xmljson.XmlJsonDataFormat

    @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");
        xmlJsonFormat.setExpandableProperties(Arrays.asList("author", "author"));

        from("direct:start")
            .choice()
            .when(header(Exchange.FILE_NAME).endsWith(".csv"))
                .unmarshal(bindy)
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

    /**
     * Uses the xmljson dataformat, based on json-lib
     */
    public T xmljson() {
        return dataFormat(new XmlJsonDataFormat());
    }
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

   
    /**
     * Uses the xmljson dataformat, based on json-lib, initializing custom options with a Map
     */
    public T xmljson(Map<String, String> options) {
        return dataFormat(new XmlJsonDataFormat(options));
    }
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

    /**
     * Uses the xmljson dataformat, based on json-lib
     */
    public T xmljson() {
        return dataFormat(new XmlJsonDataFormat());
    }
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

   
    /**
     * Uses the xmljson dataformat, based on json-lib, initializing custom options with a Map
     */
    public T xmljson(Map<String, String> options) {
        return dataFormat(new XmlJsonDataFormat(options));
    }
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

    /**
     * Uses the xmljson dataformat, based on json-lib
     */
    public T xmljson() {
        return dataFormat(new XmlJsonDataFormat());
    }
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

   
    /**
     * Uses the xmljson dataformat, based on json-lib, initializing custom options with a Map
     */
    public T xmljson(Map<String, String> options) {
        return dataFormat(new XmlJsonDataFormat(options));
    }
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

public class CamelXmljsonTest extends AbstractFeatureTest {

    public static final String COMPONENT = extractName(CamelXmljsonTest.class);
   
    protected DataFormatDefinition createDataformatDefinition(String format) {       
        return new XmlJsonDataFormat();
    }
View Full Code Here

Examples of org.apache.camel.model.dataformat.XmlJsonDataFormat

    /**
     * Uses the xmljson dataformat, based on json-lib
     */
    public T xmljson() {
        return dataFormat(new XmlJsonDataFormat());
    }
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.