Package org.apache.camel.processor

Examples of org.apache.camel.processor.ConvertBodyProcessor


     *
     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.
     */
    @Deprecated
    public Type convertOutBodyTo(Class type) {
        return process(new ConvertBodyProcessor(type));
    }
View Full Code Here


     *
     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.
     */
    @Deprecated
    public Type convertFaultBodyTo(Class type) {
        return process(new ConvertBodyProcessor(type));
    }
View Full Code Here

        return "convertBodyTo";
    }

    @Override
    public Processor createProcessor(RouteContext routeContext) throws Exception {
        return new ConvertBodyProcessor(getTypeClass());
    }
View Full Code Here

     *
     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.
     */
    @Deprecated
    public Type convertOutBodyTo(Class type) {
        return process(new ConvertBodyProcessor(type));
    }
View Full Code Here

     *
     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.
     */
    @Deprecated
    public Type convertFaultBodyTo(Class type) {
        return process(new ConvertBodyProcessor(type));
    }
View Full Code Here

            if (getTypeClass() == null) {
                throw new RuntimeCamelException("Cannot load the class with the class name: " + getType());
            }
        }

        return new ConvertBodyProcessor(getTypeClass(), getCharset());
    }
View Full Code Here

    /**
     * Converts the IN message body to the specified type
     */
    public Type convertBodyTo(Class type) {
        return process(new ConvertBodyProcessor(type));
    }
View Full Code Here

     * @deprecated Please use {@link #convertBodyTo(Class)} instead
     */
    public Type convertOutBodyTo(Class type) {
        // TODO deprecate method?
        //return process(ProcessorBuilder.setOutBody(Builder.outBody().convertTo(type)));
        return process(new ConvertBodyProcessor(type));
    }
View Full Code Here

     * Converts the FAULT message body to the specified type
     */
    public Type convertFaultBodyTo(Class type) {
        // TODO deprecate method?
        //return process(ProcessorBuilder.setFaultBody(Builder.faultBody().convertTo(type)));
        return process(new ConvertBodyProcessor(type));
    }
View Full Code Here

        // validate charset
        if (charset != null) {
            IOConverter.validateCharset(charset);
        }

        return new ConvertBodyProcessor(getTypeClass(), getCharset());
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.processor.ConvertBodyProcessor

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.