|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.servicemix.jbi.helper.MessageHelper
public final class MessageHelper
Some helper methods for working with messages
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object getBody(javax.jbi.messaging.NormalizedMessage message) throws javax.jbi.messaging.MessagingException
message
- the message on which to extract the body
javax.jbi.messaging.MessagingException
public 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 POJO
javax.jbi.messaging.MessagingException
public 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 set
javax.jbi.messaging.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |