嗨,我对 Camel 很陌生。我从 Camel 路线执行 https4 调用。我想获取响应的状态代码。我可以从哪里得到这个?
最佳答案
响应位于 Camel 的头部 CamelHttpResponseCode .
您可以使用简单的语言获取标题的值
${header.CamelHttpResponseCode}
有关 http4 组件的更多详细信息是 http://camel.apache.org/http4.html
关于apache-camel - 如何在 Camel http 调用后获取响应状态代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49404820/