Remove Headers

Table of Contents

Usage
Properties

Removes message headers whose name matches a specified pattern

Usage

The Remove Headers pattern removes any headers whose name matches the specified pattern from the message.

The Remove Headers pattern can appear anywhere in the route body.

Properties

Table 106, “Remove Headers Properties” describes the properties you can specify using the properties editor.

Table 106. Remove Headers Properties

NameDescription

Pattern

Specifies the pattern used to identify the removed headers. The pattern uses standard wild card character notation where * matches any number of characters.

Description

Specifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel.

Exclude Pattern

Specifies a pattern used to identify headers that should remain in the message. The pattern uses standard wild card character notation where * matches any number of characters.

Id

Specifies a unique identifier for the endpoint.

The tooling automatically generates an id for a node when it is created, but you can remove that id or replace it with your own. The Camel debugger requires all nodes with a breakpoint set to have a unique id.

You can use the id to refer to endpoints in your Camel XML file.