ticket #2322 updated camel to 2.10.0

ticket #1928  added camel samples to a proper sample project
This commit is contained in:
RayRoestenburg 2012-08-09 19:30:32 +02:00
parent 234ffa62e6
commit 7071ac2b8d
17 changed files with 144 additions and 193 deletions

View file

@ -26,7 +26,7 @@ public class HttpProducer extends UntypedProducerActor{
CamelMessage camelMessage = (CamelMessage) message;
Set<String> httpPath = new HashSet<String>();
httpPath.add(Exchange.HTTP_PATH);
return camelMessage.addHeaders(camelMessage.getHeaders(httpPath));
return camelMessage.withHeaders(camelMessage.getHeaders(httpPath));
} else return super.onTransformOutgoingMessage(message);
}