Chapter 4. Transformation
In this chapter, we will cover:
- Transforming using a Simple Expression
- Transforming inline with XQuery
- Transforming with XSLT
- Transforming from Java to XML with JAXB
- Transforming from Java to JSON
- Transforming from XML to JSON
- Parsing comma-separated values (CSV)
- Enriching your content with some help from other endpoints
- Normalizing messages into a common XML format
Introduction
In this chapter, we will be looking at a few of the ways that Camel allows you to transform or change the content of messages being processed. The book Enterprise Integration Patterns by Gregor Hohpe and Bobby Woolf defines the responsibility of translating data from one format to another within the Message Translator pattern (http://www.enterpriseintegrationpatterns.com/MessageTranslator.html ...
Get Apache Camel Developer's Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.