camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <>
Subject camel-cxfrs with custom http headers...
Date Mon, 16 Aug 2010 16:14:35 GMT

I have a route that defines a CXFRS endpoint.  I need to retrieve custom HTTP
header values from the inbound request...

          .process(new Processor() {
                    public void process(Exchange exchange) throws Exception
                            Message inMessage = exchange.getIn();    
                            System.out.println("headers->" +

here is my unit test code to simulate a client request...

        HttpGet get = new
        get.addHeader("myHeader", "1234");
        HttpClient httpclient = new DefaultHttpClient();
        HttpResponse response = httpclient.execute(get);

The problem is that the custom header "myHeader" is unavailable from my
route.  Is there another way to get to it?  

>From looking at the camel-cxf source code, I can see that the default header
strategy/binding logic only sets up predefined HTTP headers.  Is there a
reason why other headers aren't passed through as well?

Either way, what is the best approach to override this behavior?  


Ben O'Day

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message