MessageConverter SPI with conversion hint support.
In case of a conversion hint being provided, the framework will call
these extended methods if a converter implements this interface, instead
of calling the regular fromMessage / toMessage variants.
| 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, Object conversionHint)A variant of |
| 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, Object conversionHint)null)A variant of |
| fromMessage | back to summary |
|---|---|
| public Object fromMessage(Message<?> message, Class<?> targetClass, Object conversionHint) A variant of
| |
| toMessage | back to summary |
|---|---|
| public Message A variant of
| |