Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
In camel there are a number of components that use the http protocol headers to do their business. Exchange.CONTENT_ENCODING Exchange.CONTENT_TYPE Exchange.HTTP_BASE_URI Exchange.HTTP_CHARACTER_ENCODING Exchange.HTTP_METHOD Exchange.HTTP_PATH Exchange.HTTP_QUERY Exchange.HTTP_RESPONSE_CODE If you don't want these headers to bother your other endpoints, you can remove these headers as follows: from("jetty://http://myhost:9000/myservice/") // Remove the header which name is start with CamelHttp, this DSL is new to Camel 2.3.0 // You can use removeHeader if your camel version is lower than 2.3.0 .removeHeaders("CamelHttp*") .to("otherEndpoint"); <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="jetty://http://myhost:9000/myservice/"/> <removeHeaders pattern="CamelHttp*" /> <to uri="otherEndpoint"/> </route> </camelContext> |