camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Calvert, Zach (Zach)** CTR **" <>
Subject Get HTTP Headers In CXF Bean
Date Wed, 28 Mar 2012 18:09:37 GMT
I am trying to get a hold of either the camel header "CamelHttpBaseUri" or get the correctly
populated resource "@Context UriInfo uriInfo" inside of a CamelCXF bean.  I'm able to get
the UriInfo, but the baseURI exposed out of the UriInfo is "camel://cxfbean:" instead of something
like "".  We are using jetty as the from:
            <camel:from uri="jetty:{{jetty.port}}/restms/?matchOnUriPrefix=true"
            <camel:log message="Message received from jetty"/>
            <camel:to uri="cxfbean:restfulService?headerFilterStrategy=#keepAllMessageHeadersStrategy"
            <camel:log message="Cxfbean handled message"/>

I need to get the base URI, so if I reach my server by going to, I
know where the request came from.

Is this possible?

Zach Calvert

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message