I have the following in a camel route, but it doesn't seem to get the header value. Is this the right way to do it?
<to uri="ahc:http://${header.freeNasServerIp}:80/api/v1.0/storage/volume/"/>
I have the following in a camel route, but it doesn't seem to get the header value. Is this the right way to do it?
<to uri="ahc:http://${header.freeNasServerIp}:80/api/v1.0/storage/volume/"/>
请参阅此有关动态的常见问题解答:http: //camel.apache.org/how-to-use-a-dynamic-uri-in-to.html
请参阅此链接如何通过 Apache Camel 调用 RESTful 服务?
这个问题的具体答案是:
<recipientList>
<simple>ahc:http://${header.freeNasServerIp}:80/api/v1.0/storage/volume/</simple>
</recipientList>