程序包 org.springframework.messaging.converter
Provides support for message conversion.
接口概要 接口 说明 ContentTypeResolver Resolve the content type for a message.MessageConverter A converter to turn the payload of aMessage
from serialized form to a typed Object and vice versa.SmartMessageConverter An extendedMessageConverter
SPI with conversion hint support.类概要 类 说明 AbstractMessageConverter Abstract base class forSmartMessageConverter
implementations including support for common properties and a partial implementation of the conversion methods, mainly to check if the converter supports the conversion based on the payload class and MIME type.ByteArrayMessageConverter AMessageConverter
that supports MIME type "application/octet-stream" with the payload converted to and from a byte[].CompositeMessageConverter AMessageConverter
that delegates to a list of registered converters to be invoked until one of them returns a non-null result.DefaultContentTypeResolver A defaultContentTypeResolver
that checks theMessageHeaders.CONTENT_TYPE
header or falls back to a default value.GenericMessageConverter An extension of theSimpleMessageConverter
that uses aConversionService
to convert the payload of the message to the requested type.MappingJackson2MessageConverter A Jackson 2 basedMessageConverter
implementation.MarshallingMessageConverter Implementation ofMessageConverter
that can read and write XML using Spring'sMarshaller
andUnmarshaller
abstractions.SimpleMessageConverter A simple converter that simply unwraps the message payload as long as it matches the expected target class.StringMessageConverter AMessageConverter
that supports MIME type "text/plain" with the payload converted to and from a String.异常错误概要 异常错误 说明 MessageConversionException An exception raised byMessageConverter
implementations.