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 |
---|---|
Object |
convertFromInternal(org.springframework.messaging.Message<?> message,
Class<?> targetClass,
Object conversionHint)
Don't need to manipulate message headers.
|
protected Class<?>[] |
supportedPayloadTypes()
Subclasses implement this to specify supported payload types
|
protected Class<?>[] |
supportedTargetTypes()
Subclasses implement this to specify supported target types
|
canConvertFrom, canConvertTo, convertToInternal, supports, supportsPayloadType, supportsTargetMimeType
convertFromInternal, convertToInternal, fromMessage, fromMessage, getContentTypeResolver, getDefaultContentType, getMimeType, getSerializedPayloadClass, getSupportedMimeTypes, isStrictContentTypeMatch, setContentTypeResolver, setSerializedPayloadClass, setStrictContentTypeMatch, supportsMimeType, toMessage, toMessage
protected Class<?>[] supportedTargetTypes()
AbstractFromMessageConverter
supportedTargetTypes
in class AbstractFromMessageConverter
protected Class<?>[] supportedPayloadTypes()
AbstractFromMessageConverter
supportedPayloadTypes
in class AbstractFromMessageConverter
public Object convertFromInternal(org.springframework.messaging.Message<?> message, Class<?> targetClass, Object conversionHint)
convertFromInternal
in class org.springframework.messaging.converter.AbstractMessageConverter
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.