0

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/"/>
Phil
  • 46,436
  • 33
  • 110
  • 175

1 Answers1

1

See this FAQ about dynamic to: http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html


See this link How can I invoke a RESTful service through Apache Camel?

Answer specific to this question is:

<recipientList>
<simple>ahc:http://${header.freeNasServerIp}:80/api/v1.0/storage/volume/</simple>
</recipientList>
Community
  • 1
  • 1
Claus Ibsen
  • 56,060
  • 7
  • 50
  • 65