Apache camel 通过Exchange.Content\u Type设置标题内容类型与通常的内容类型有什么区别?

Apache camel 通过Exchange.Content\u Type设置标题内容类型与通常的内容类型有什么区别?,apache-camel,Apache Camel,我可以将标题内容类型设置为 <setHeader headerName="Exchange.CONTENT_TYPE"> <constant>application/json</constant> </setHeader> 应用程序/json 诸如此类 <setHeader headerName="Content-Type"> <constant>application/json</constan

我可以将标题内容类型设置为

<setHeader headerName="Exchange.CONTENT_TYPE">
    <constant>application/json</constant>
</setHeader>

应用程序/json
诸如此类

<setHeader headerName="Content-Type">
    <constant>application/json</constant>
</setHeader>

应用程序/json

这两种方法的区别是什么?什么方法可能是个问题?

这是一样的<代码>交换。内容类型是一个常量,它引用字符串“内容类型”,并在内部由Camel替换