1 17 package org.apache.servicemix.components; 18 19 import org.apache.servicemix.components.util.TransformComponentSupport; 20 import org.apache.servicemix.jbi.jaxp.StringSource; 21 22 import javax.jbi.messaging.MessageExchange; 23 import javax.jbi.messaging.MessagingException; 24 import javax.jbi.messaging.NormalizedMessage; 25 26 public class HelloWorldComponent extends TransformComponentSupport { 27 28 private String property; 29 30 protected boolean transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage out) 31 throws MessagingException { 32 out.setContent(in.getContent()); 33 return true; 34 } 35 36 public String getProperty() { 37 return property; 38 } 39 40 public void setProperty(String property) { 41 this.property = property; 42 } 43 44 } 45 | Popular Tags |