Hey guys,
Sorry to open this thread again, but I have been trying to accomplish the same thing (Jetty), but haven't had any luck. I have read through
this but still feel quite stranded. Almost all documentation outside that page is for direct-java or DSL implementations, whereas with akka you extend the Consumer class, define your endpoint, and you're good to go. I'm afraid to start blindly hacking my way to raw camel objects because I don't know how Akka implements the underlying camel objects and am nervous I will start hardwiring to stuff I don't completely understand or creating duplicate instances or other unintended consequences that will give me more problems than solutions.
Up to this point I have handles to my JettyHttpComponent and CamelContext in my Consumer actor constructor. Cedric mentioned a custom Processor, so I am guessing I can get the client IP from the Exchange object somehow. If I were to figure that out, I'm not sure how I would wire that into my consumer actor. Would I define it in my endpoint string which would then point to the actual definition elsewhere, or do I somehow override a consumer method? I haven't found any methods in either the JettyHttpComponent/CamelContext objects that I think would do the trick.
Any additional hints or musings would be greatly appreciated!