|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.components.util.MessageHelper
public final class MessageHelper
Some helper methods for working with messages
| Method Summary | |
|---|---|
static Object |
getBody(javax.jbi.messaging.NormalizedMessage message)
Deprecated. 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 Object |
getBody(javax.jbi.messaging.NormalizedMessage message,
PojoMarshaler marshaller)
Deprecated. 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,
Object body)
Deprecated. 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 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 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,
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 | |||||||||