camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Soto <alex.s...@envieta.com>
Subject Remove breadcrumbId from Rest Service Response Headers
Date Wed, 10 Jun 2015 15:16:22 GMT
Hi there,

Is there a way to remove the “breadcrumbId" header from the Rest Service response?

I am using Camel 2.15.1
Here is my Route :

<onException>
	<exception>java.lang.Exception</exception>
	<redeliveryPolicy maximumRedeliveries="1" />
	<handled>
		<constant>true</constant>
	</handled>
	<camel:setHeader headerName="CamelHttpResponseCode">
		<constant>500</constant>
	</camel:setHeader>
	<camel:setBody>
		<constant></constant>
	</camel:setBody>
	<camel:removeHeader headerName="breadcrumbId"/>
</onException>

<rest path="/">
	<post uri="test">
		<to uri="direct:test" />
	</post>
</rest>

<route>
	<from uri="direct:test" />
	<throttle 
		asyncDelayed="false" 
		callerRunsWhenRejected="false" 
		rejectExecution="true"
		timePeriodMillis="1000">
		<constant>10000</constant>


		<unmarshal ref="myDataFormat"/>
		<removeHeader  headerName="breadcrumbId"/>
	</throttle>
</route>


Adding the removeHeaders does not seem to cause any effect; I am still getting the breadcrumbId
header in the HTTP response headers.

 
Best regards,
Alex soto




Mime
View raw message