5

嗨,我对骆驼很陌生。我从骆驼路线执行 https4 调用。我想获取响应的状态码。我可以从哪里得到这个?

4

1 回答 1

10

响应位于 Camel 的标头CamelHttpResponseCode中。

可以用简单的语言获取表头的值

${header.CamelHttpResponseCode}

有关 http4 组件的更多详细信息是http://camel.apache.org/http4.html

于 2018-03-21T11:43:25.993 回答