Package org.springframework.integration.message

Examples of org.springframework.integration.message.DefaultMessageHeader


                return message;
            }
        }

        // Create a new spring message and copy the attributes and body from the camel message
        DefaultMessageHeader messageHeader = new DefaultMessageHeader();
        Map<String, Object> headers = camelMessage.getHeaders();
        for (String key : headers.keySet()) {
            Object value = headers.get(key);
            messageHeader.setAttribute(key, value);
        }
        return new GenericMessage(camelMessage.getBody(), messageHeader);
    }
View Full Code Here

TOP

Related Classes of org.springframework.integration.message.DefaultMessageHeader

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.