public interface PojoMarshaler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BODY
The key on the message to store the message body which cannot be
marshaled into or out of XML easily or to provide a cache of the object
representation of the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshal(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message,
java.lang.Object body)
Marshals the payload into the normalized message, typically as the
content property.
|
java.lang.Object |
unmarshal(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
Unmarshals the response out of the normalized message.
|
static final java.lang.String BODY
void marshal(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message,
java.lang.Object body)
throws javax.jbi.messaging.MessagingException
exchange - the message exchange in which to marshalmessage - the message in which to marshalbody - the body of the message as a POJOjavax.jbi.messaging.MessagingExceptionjava.lang.Object unmarshal(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
exchange - the message exchange, which is an InOut or
InOptionalOutmessage - the output messagejavax.jbi.messaging.MessagingExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.