MessageConverter that supports MIME type "text/plain" with the
payload converted to and from a String.
| Modifier and Type | Field and Description |
|---|---|
| private final Charset |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | convertFromInternal(Message<?>
the input message message, Class<?> the target class for the conversion targetClass, Object conversionHint)Overrides org. Convert the message payload from serialized form to an Object. |
| protected Object | convertToInternal(Object
the Object to convert payload, MessageHeaders optional headers for the message (may be headers, Object conversionHint)null)Overrides org. Convert the payload object to serialized form. |
| private Charset | |
| protected boolean | supports(Class<?>
the class to test for support clazz)Implements abstract org. Whether the given class is supported by this converter. |
| defaultCharset | back to summary |
|---|---|
| private final Charset defaultCharset | |
| StringMessageConverter | back to summary |
|---|---|
| public StringMessageConverter() | |
| StringMessageConverter | back to summary |
|---|---|
| public StringMessageConverter(Charset defaultCharset) | |
| convertFromInternal | back to summary |
|---|---|
| protected Object convertFromInternal(Message<?> message, Class<?> targetClass, Object conversionHint) Overrides org. Doc from org. Convert the message payload from serialized form to an Object.
| |
| convertToInternal | back to summary |
|---|---|
| protected Object convertToInternal(Object payload, MessageHeaders headers, Object conversionHint) Overrides org. Doc from org. Convert the payload object to serialized form.
| |
| getContentTypeCharset | back to summary |
|---|---|
| private Charset getContentTypeCharset(MimeType mimeType) | |
| supports | back to summary |
|---|---|
| protected boolean supports(Class<?> clazz) Implements abstract org. Doc from org. Whether the given class is supported by this converter. | |