Exemple #1
0
 protected UMOMessage aggregateEvents(EventGroup events) throws RoutingException {
   StringBuffer newPayload = new StringBuffer();
   UMOEvent event = null;
   for (Iterator iterator = events.getEvents().iterator(); iterator.hasNext(); ) {
     event = (UMOEvent) iterator.next();
     try {
       newPayload.append(event.getMessageAsString()).append(" ");
     } catch (UMOException e) {
       throw new RoutingException(event.getMessage(), event.getEndpoint(), e);
     }
   }
   return new MuleMessage(newPayload.toString(), event.getProperties());
 }
Exemple #2
0
 /**
  * Returns the message payload for this event
  *
  * @return the message payload for this event
  */
 public UMOMessage getMessage() {
   return event.getMessage();
 }