|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PojoMarshaler
A plugin strategy which marshals an Object into and out of a JBI message. This interface is used by the ServiceMixClient to marshal POJOs into and out of JBI messages.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final java.lang.String BODY
| Method Detail |
|---|
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 POJO
javax.jbi.messaging.MessagingException
java.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 message
javax.jbi.messaging.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||