ticket #2322 updated camel to 2.10.0
ticket #1928 added camel samples to a proper sample project
This commit is contained in:
parent
234ffa62e6
commit
7071ac2b8d
17 changed files with 144 additions and 193 deletions
|
|
@ -10,9 +10,10 @@ public class HttpTransformer extends UntypedActor{
|
|||
public void onReceive(Object message) {
|
||||
if (message instanceof CamelMessage) {
|
||||
CamelMessage camelMessage = (CamelMessage) message;
|
||||
CamelMessage replacedMessage = camelMessage.mapBody(new Function<String, String>(){
|
||||
public String apply(String body) {
|
||||
return body.replaceAll("Akka ", "AKKA ");
|
||||
CamelMessage replacedMessage = camelMessage.mapBody(new Function<Object, String>(){
|
||||
public String apply(Object body) {
|
||||
String text = new String((byte[])body);
|
||||
return text.replaceAll("Akka ", "AKKA ");
|
||||
}
|
||||
});
|
||||
getSender().tell(replacedMessage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue