SimpleMessageConverter that uses a
ConversionService to convert the payload of the message
to the requested type.
Return null if the conversion service cannot convert
from the payload type to the requested type.
ConversionService
| Modifier and Type | Field and Description |
|---|---|
| private final ConversionService |
| Access | Constructor and Description |
|---|---|
| public | |
| public | GenericMessageConverter(ConversionService conversionService)
Create a new instance with the given |
| Modifier and Type | Method and Description |
|---|---|
| public Object | fromMessage(Message<?>
the input message message, Class<?> the target class for the conversion targetClass)Overrides org. Implements org. Convert the payload of a |
| conversionService | back to summary |
|---|---|
| private final ConversionService conversionService | |
| GenericMessageConverter | back to summary |
|---|---|
| public GenericMessageConverter() Create a new instance with a default | |
| GenericMessageConverter | back to summary |
|---|---|
| public GenericMessageConverter(ConversionService conversionService) Create a new instance with the given | |
| fromMessage | back to summary |
|---|---|
| public Object fromMessage(Message<?> message, Class<?> targetClass) Overrides org. 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 | |