i want to implement the content enricher pattern with camel like this:
from("direct:x").enrich(dynamicUri,new MyAggregatorStrategy()).to("direct:y")
The dynamic uri is based on each message which comes from the direct:x
channel.
So let's say there is an xml item coming in with the value a
then the uri should be like http://someurl?q=a but the dynamicUri can only be a resource channel identifier.
I found some discussion on this here but i don't really understand it and the "HttpProducer.HTTP_URI" is not available in my workspace. Which camel package do I need for this and how do I do this? A processor maybe, but how?