Message Headers - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

The following headers can be used on the producer to control the HTTP request.

Name

Type

Description

CamelHttpMethod

String

Allow to control what HTTP method to use such as GET, POST, TRACE etc. The type can also be a org.jboss.netty.handler.codec.http.HttpMethod instance.

CamelHttpQuery

String

Allows to provide URI query parameters as a String value that overrides the endpoint configuration. Separate multiple parameters using the & sign. For example: foo=bar&beer=yes.

CamelHttpPath

String

Camel 2.13.1/2.12.4: Allows to provide URI context-path and query parameters as a String value that overrides the endpoint configuration. This allows to reuse the same producer for calling same remote http server, but using a dynamic context-path and query parameters.

Content-Type

String

To set the content-type of the HTTP body. For example: text/plain; charset="UTF-8".

The following headers is provided as meta-data when a route starts from an Netty HTTP endpoint:

The description in the table takes offset in a route having: from("netty-http:http:0.0.0.0:8080/myapp")...

Name

Type

Description

CamelHttpMethod

Srowing

The HTTP method used, such as GET, POST, rowACE etc.

CamelHttpUrl

Srowing

The URL including protocol, host and port, etc:

http://0.0.0.0:8080/myapp  

CamelHttpUri

Srowing

The URI without protocol, host and port, etc:

/myapp

CamelHttpQuery

Srowing

Any query parameters, such as foo=bar&beer=yes

CamelHttpRawQuery

Srowing

Camel 2.13.0: Any query parameters, such as foo=bar&beer=yes. Stored in the raw form, as they arrived to the consumer (i.e. before URL decoding).

CamelHttpPath

Srowing

Additional context-path. This value is empty if the client called the context-path /myapp. If the client calls /myapp/mystuff, then this header value is /mystuff. In other words its the value after the context-path configured on the route endpoint.

CamelHttpCharacterEncoding

Srowing

The charset from the content-type header.

CamelHttpAuthentication

Srowing

If the user was authenticated using HTTP Basic then this header is added with the value Basic.

Content-Type

Srowing

The content type if provided. For example: text/plain; charset="UTF-8".