camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen">
Subject RE: Proxying web services
Date Wed, 17 Sep 2008 06:02:10 GMT

We might need to expose somekind of easier injection / alternation of the xxxHeaderFilterStrategyt
the endpoint is configued with. So end users as in this case easily can customize it. In some
cases end-users doesn't want to filter all headers, and in others they do. 

It should be easily configurable from spring XML as well. Qucikly looking at the http component
you need to alter the HttpComponent to set your own HttpHeaderFilterStrategy. I think it should
be configurable on the endpoint, then end users can set a URI option, or a setter on the endpoint
itself. Then it's easily configurable in Spring as well.

Med venlig hilsen
Claus Ibsen
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
-----Original Message-----
From: Willem Jiang [] 
Sent: 17. september 2008 01:46
Subject: Re: Proxying web services

Hi Micheal,

The CAMEL-766[1] will explain this stripping for handling the 
You can override the HttpHeaderFilterStrategy yourself and inject it 
into the http component.


Michael.Murphree wrote:
> One more item on this.  In camel-http (1.4.0 and 1.5.0), the HttpBinding
> class deliberately filters out the Content-Type header on the HttpResponse
> object.  This causes a web service response to fail.  Why does the binding
> strip out the "Content-Type" header from the response?
> Is there a way to add it back in short of touching that code?
> Regards,
> Michael

View raw message