camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Calvert, Zach (Zach)** CTR **" <zcalv...@motive.com>
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 "http://example.com".  We are using jetty as the from:
<camel:route>
            <camel:from uri="jetty:http://0.0.0.0:{{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"/>
        </camel:route>

I need to get the base URI, so if I reach my server by going to http://example.com/rest, I
know where the request came from.


Is this possible?



Thanks,
Zach Calvert


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