public class ByteArrayToStringMessageConverter extends AbstractFromMessageConverter
MessageConverter
to convert from byte[] to String applying the Charset provided in
the content-type header if any.logger
Constructor and Description |
---|
ByteArrayToStringMessageConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertFromInternal(org.springframework.messaging.Message<?> message,
java.lang.Class<?> targetClass)
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, convertToInternal, setContentTypeResolver, supports, supportsPayloadType, supportsTargetMimeType
fromMessage, getContentTypeResolver, getDefaultContentType, getMimeType, getSerializedPayloadClass, getSupportedMimeTypes, isStrictContentTypeMatch, setSerializedPayloadClass, setStrictContentTypeMatch, supportsMimeType, toMessage
protected java.lang.Class<?>[] supportedTargetTypes()
AbstractFromMessageConverter
supportedTargetTypes
in class AbstractFromMessageConverter
protected java.lang.Class<?>[] supportedPayloadTypes()
AbstractFromMessageConverter
supportedPayloadTypes
in class AbstractFromMessageConverter
public java.lang.Object convertFromInternal(org.springframework.messaging.Message<?> message, java.lang.Class<?> targetClass)
convertFromInternal
in class org.springframework.messaging.converter.AbstractMessageConverter