public final class MessageHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
getBody(javax.jbi.messaging.NormalizedMessage message)
A helper method to return the body of the message as a POJO which could be a
bean or some DOMish model of the body.
|
static java.lang.Object |
getBody(javax.jbi.messaging.NormalizedMessage message,
PojoMarshaler marshaller)
A helper method to return the body of the message as a POJO which could be a
bean or some DOMish model of the body.
|
static void |
setBody(javax.jbi.messaging.NormalizedMessage message,
java.lang.Object body)
Sets the body of the message as a POJO
|
public static java.lang.Object getBody(javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
message - the message on which to extract the bodyjavax.jbi.messaging.MessagingExceptionpublic static java.lang.Object getBody(javax.jbi.messaging.NormalizedMessage message,
PojoMarshaler marshaller)
throws javax.jbi.messaging.MessagingException
message - the message on which to extract the bodymarshaller - the marshaller used to map from the XML representation to the POJOjavax.jbi.messaging.MessagingExceptionpublic static void setBody(javax.jbi.messaging.NormalizedMessage message,
java.lang.Object body)
throws javax.jbi.messaging.MessagingException
message - the message on which to set the bodybody - the POJO or DOMish model to setjavax.jbi.messaging.MessagingExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.