Package org.apache.camel

Examples of org.apache.camel.Exchange.copy()


    public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
        Exchange answer = super.aggregate(oldExchange, newExchange);
        if (oldExchange == null) {
            // for the first time we must do a copy as the answer, so the outgoing
            // exchange is not one of the grouped exchanges, as that causes a endless circular reference
            answer = answer.copy();
        }
        return answer;
    }

    @Override
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.