You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by James090216 <ja...@fmr.com> on 2016/02/09 18:33:16 UTC

Passing headers from Restlet endpoint to bridged endpoint

Hi,

I am using Camel as a proxy between a client and backend services. In my
case I have Camel running embedded in a Spring Web Application. I am using
the Restlet component to expose endpoints that the client hits. Then I have
routes that map the exposed endpoints to relevant backend services.
Everything is working as expected in the route except the passing of the
headers to the backend services. The headers being passed to the downstream
service contains the following entries:
breadcrumbid
org.restlet.http.headers
cookie
host
authorization

But the headers that I pass into the Restlet endpoint are the ones that I
need to end up being passed to the backend service instead of items above.
The actual headers I want passed down are wrapped up in the
org.restlet.http.headers entry from the list above.

I would be very grateful for any help you can give on this.

Below is a sample route:
        <camel:route id="myRoute">
            <camel:from uri="restlet:/anEndpoint" />
            <camel:to uri="ht
tp://host:port/context/backendServiceEndpoint?authMethod=XXX&amp;authMethodPriority=XXX&amp;authUsername=XXX&amp;authPassword=XXX&amp;authDomain=XXX&amp;authHost=XXX&amp;bridgeEndpoint=true&amp;throwExceptionOnFailure=false"
pattern="InOut" />
        </camel:route>




--
View this message in context: http://camel.465427.n5.nabble.com/Passing-headers-from-Restlet-endpoint-to-bridged-endpoint-tp5777479.html
Sent from the Camel - Users mailing list archive at Nabble.com.