Message from serialized form to a typed
Object and vice versa. The MessageHeaders#CONTENT_TYPE message header may be
used to specify the media type of the message content.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the result of the conversion, ornull if the converter cannot
perform the conversionthe input message message, Class<?> the target class for the conversion targetClass)Convert the payload of a |
| public Message | Returns: the new message, ornull if the converter does not support the
Object type or the target media typethe Object to convert payload, MessageHeaders optional headers for the message (may be headers)null)Create a |
| fromMessage | back to summary |
|---|---|
| public Object fromMessage(Message<?> message, Class<?> targetClass) Convert the payload of a If the converter does not support the specified media type or cannot perform
the conversion, it should return | |
| toMessage | back to summary |
|---|---|
| public Message Create a If the converter does not support the specified media type or cannot perform
the conversion, it should return
| |