camel transform message

Transform message from one format to another via an existing running Camel integration

Usage

camel transform message [options]

Options

Option Description Default Type

--body

Message body to send (prefix with file: to refer to loading message body from file)

String

--camel-version

To run using a different Camel version than the default version.

String

--component

The component to use for message transformation

String

--dataformat

The dataformat to use for message transformation

String

--header

Message header (key=value)

List

--language

The language to use for message transformation

String

--logging-color

Use colored logging

true

boolean

--option

Option for additional configuration of the used language, component or dataformat (key=value)

List

--output

File to store output. If none provide then output is printed to console.

String

--pretty

Pretty print message body when using JSon or XML format

boolean

--repo,--repos

Additional maven repositories (Use commas to separate multiple repositories)

String

--show-body

Show message body from the output message

true

boolean

--show-exception

Show exception and stacktrace for failed transformation

true

boolean

--show-exchange-properties

Show exchange properties from the output message

false

boolean

--show-headers

Show message headers from the output message

true

boolean

--source

Instead of using external template file then refer to an existing Camel route source with inlined Camel language expression in a route. (use :line-number or :id to refer to the exact location of the EIP to use)

String

--template

The template to use for message transformation (prefix with file: to refer to loading message body from file)

String

--timeout

Timeout in millis waiting for message to be transformed

20000

long

--watch

Execute periodically and showing output fullscreen

boolean

-h,--help

Display the help and sub-commands

boolean