Note that this converter ignores any content type information that may be present in message headers and should not be used if payload conversion is actually required.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | fromMessage(Message<?>
the input message message, Class<?> the target class for the conversion targetClass)Implements org. Convert the payload of a |
| public Message | toMessage(Object
the Object to convert payload, MessageHeaders optional headers for the message (may be headers)null)Implements org. Create a |
| SimpleMessageConverter | back to summary |
|---|---|
| public SimpleMessageConverter() | |
| fromMessage | back to summary |
|---|---|
| public Object fromMessage(Message<?> message, Class<?> targetClass) Implements org. Doc from org. 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 Implements org. Doc from org. Create a If the converter does not support the specified media type or cannot perform
the conversion, it should return
| |