# cSetHeader

Sets headers or customizes the default headers, if any, on each message sent to it for subsequent message processing.

For more information, see the Apache camel documentation https://camel.apache.org/components/latest/.

## cSetHeader Standard properties

These properties are used to configure cSetHeader running in the Standard Job framework.

The Standard cSetHeader component belongs to the Core family.

## Basic settings

| Properties | Description |
| --- | --- |
| New headers to set | <ul> <li> <p>Click <span>[+]</span> to add as many headers								as required to the table.</p> </li> <li> <p> <span>Name</span>: Type in a name for the								message header.</p> <p>The header name <em>CorrelationID</em> is reserved.								The value of this header will be overridden by the correlation ID of								the message if it exist.</p> </li> <li> <p> <span>Language</span>: Select the language of the                     expression you use from <span>None</span>, <span>Bean</span>, <span>Constant</span>, <span>CorrelationID</span>,                        <span>EL</span>, <span>Groovy</span>, <span>Header</span>,                        <span>JoSQL</span>, <span>JSonPath</span>, <span>JXPath</span>,                        <span>MVEL</span>, <span>OGNL</span>, <span>PHP</span>, <span>Property</span>, <span>Python</span>, <span>Ruby</span>, <span>Simple</span>, <span>SpEL</span>, <span>SQL</span>, <span>XPath</span>, and <span>XQuery</span>.</p> <p>Select <span>Bean</span> if you want to call a								predefined Java Bean to return the header value.</p> <p>Select <span>CorrelationID</span> to                     use the existing correlation ID of the message as the header value if the                     correlation ID is available in the closest <span>cSOAP</span> connected to this component. For more information about                     the <span>cSOAP</span> component, see <a href="https://help.qlik.com/talend/en-US/components/8.0/mediation-apache-cxf/csoap" target="_blank">cSOAP</a>.</p> </li> <li> <p> <span>Value</span>: Type in the expression to								set the value of the message header, or the Bean class that will								return a value for the message header, in the form of									<em>beans.BEAN_NAME</em>.</p> <p>If <span>CorrelationID</span> is                     selected in the <span>Language</span> list, this field                     is grayed out. The existing correlation ID from the closest <span>cSOAP</span> connected to this component will be set as                     the header value. For more information about the <span>cSOAP</span> component, see <a href="https://help.qlik.com/talend/en-US/components/8.0/mediation-apache-cxf/csoap" target="_blank">cSOAP</a>.</p> </li> </ul> |
| Cleanup order | Select the order of header removal and addition from Remove<br>before adding new headers and Remove after adding new<br>headers.<br><br>Information noteNote: This option is available only<br>if you have installed the R2025-08 Talend Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator. |
| Headers to remove | <ul> <li> <div>Click <span>[+]</span> to add as many headers as                     required to the table.<div><span>Information note</span><span>Note:</span> This option is available only if you have installed                        the R2022-05 <span>Talend Studio</span> Monthly update or a later one delivered by <span>Talend</span>. For more information, check with your administrator.</div> </div> </li> <li> <span>Name</span>: Type in the name of the message header to be removed.                  You can either enter the exact header name or use the wildcard character                     <span>*</span>. For example, enter <span>*</span> to remove all the                  headers, or <span>Camel*</span> to remove all headers starting with                     <span>Camel</span>.</li> </ul> |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | cSetHeader is used as a middle<br>component in a Route. |
| Limitation | n/a |

**Related concepts**

* [Splitting a message and renaming the sub-messages according to contained information](https://help.qlik.com/talend/en-US/mediation-components/8.0/mediation-setheader/csetheader-cfile-csplitter-cprocessor-splitting-message-and-renaming-sub-messages-according-to-contained-information)