Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
Chapter 6. Header
Overview 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The header language provides a convenient way of accessing header values in the current message. When you supply a header name, the header language performs a case-insensitive lookup and returns the corresponding header value.
The header language is part of
camel-core
.
XML example 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
For example, to resequence incoming exchanges according to the value of a
SequenceNumber
header (where the sequence number must be a positive integer), you can define a route as follows:
Java example 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The same route can be defined in Java, as follows:
from("SourceURL") .resequence(header("SequenceNumber")) .to("TargetURL");
from("SourceURL")
.resequence(header("SequenceNumber"))
.to("TargetURL");