Package akka.camel

Examples of akka.camel.CamelMessage.withHeaders()


  public Object onTransformOutgoingMessage(Object message) {
    if (message instanceof CamelMessage) {
      CamelMessage camelMessage = (CamelMessage) message;
      Set<String> httpPath = new HashSet<String>();
      httpPath.add(Exchange.HTTP_PATH);
      return camelMessage.withHeaders(camelMessage.getHeaders(httpPath));
    } else
      return super.onTransformOutgoingMessage(message);
  }

  // instead of replying to the initial sender, producer actors can implement custom
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.