Apache camel 如何从org.restlet.http.headers检索特定的camel头
如何从org.restlet.http.headers检索特定的camel头。 在登录后,我已在驼峰路线中收到以下记录的标题。问题是所有的头都被打包到org.restlet.http.headers组中。如何使用camel中的简单路由从组中检索特定标题Statusmessage 日志标题:Apache camel 如何从org.restlet.http.headers检索特定的camel头,apache-camel,spring-camel,Apache Camel,Spring Camel,如何从org.restlet.http.headers检索特定的camel头。 在登录后,我已在驼峰路线中收到以下记录的标题。问题是所有的头都被打包到org.restlet.http.headers组中。如何使用camel中的简单路由从组中检索特定标题Statusmessage 日志标题: org.restlet.http.headers=[[X-b3-traceid: 2ae58402bfc497d6] [X-robots-tag: none] [Server: Restlet-Fram
org.restlet.http.headers=[[X-b3-traceid: 2ae58402bfc497d6]
[X-robots-tag: none]
[Server: Restlet-Framework/2.3.12]
[X-b3-sampled: 0]
[Date: Sat
05 Sep 2020 16:42:39 GMT]
[Content-type: application/json; charset=UTF-8]
[Responsestatus: Failure]
[Syserrorcode: ERRSFDC213]
[Statusmessage: RefIDandWebtopIdarerequirefieldHencecannotbeempty]
[X-xss-protection: 1; mode=block]]
我尝试使用下面的简单定义,但仍然无法捕获标题值
${in.header.org.restlet.http.headers[Statusmessage]}您是否尝试过
${in.header[org.restlet.http.headers][Statusmessage]}
?