public class StringToByteArrayMessageConverter extends AbstractFromMessageConverter
MessageConverter
to convert a String to a byte[], applying the provided Charset in
the content-type header if any.logger
Constructor and Description |
---|
StringToByteArrayMessageConverter() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convertFromInternal(org.springframework.messaging.Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint)
Don't need to manipulate message headers.
|
protected java.lang.Class<?>[] |
supportedPayloadTypes()
Subclasses implement this to specify supported payload types
|
protected java.lang.Class<?>[] |
supportedTargetTypes()
Subclasses implement this to specify supported target types
|
buildConvertedMessage, canConvertFrom, canConvertTo, setContentTypeResolver, supports, supportsPayloadType, supportsTargetMimeType
convertFromInternal, convertToInternal, convertToInternal, fromMessage, fromMessage, getContentTypeResolver, getDefaultContentType, getMimeType, getSerializedPayloadClass, getSupportedMimeTypes, isStrictContentTypeMatch, setSerializedPayloadClass, setStrictContentTypeMatch, supportsMimeType, toMessage, toMessage
protected java.lang.Class<?>[] supportedTargetTypes()
AbstractFromMessageConverter
supportedTargetTypes
in class AbstractFromMessageConverter
protected java.lang.Class<?>[] supportedPayloadTypes()
AbstractFromMessageConverter
supportedPayloadTypes
in class AbstractFromMessageConverter
protected java.lang.Object convertFromInternal(org.springframework.messaging.Message<?> message, java.lang.Class<?> targetClass, java.lang.Object conversionHint)
convertFromInternal
in class org.springframework.messaging.converter.AbstractMessageConverter