Uses of Interface
org.springframework.messaging.converter.MessageConverter
Packages that use MessageConverter
Package
Description
Provides support for message conversion.
Defines interfaces and implementation classes for messaging templates.
Support classes for working with annotated message-handling methods.
Support classes for handling messages from simple messaging protocols
(like STOMP).
Configuration support for WebSocket messaging using higher level messaging protocols.
Generic support for simple messaging protocols (like STOMP).
Support for annotation-based WebSocket setup in configuration classes.
-
Uses of MessageConverter in org.springframework.messaging.converter
Subinterfaces of MessageConverter in org.springframework.messaging.converterModifier and TypeInterfaceDescriptioninterfaceAn extendedMessageConverterSPI with conversion hint support.Classes in org.springframework.messaging.converter that implement MessageConverterModifier and TypeClassDescriptionclassCommon base class for plain JSON converters, e.g.classAbstract base class forSmartMessageConverterimplementations 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.classAMessageConverterthat supports MIME type "application/octet-stream" with the payload converted to and from a byte[].classAMessageConverterthat delegates to a list of registered converters to be invoked until one of them returns a non-null result.classAn extension of theSimpleMessageConverterthat uses aConversionServiceto convert the payload of the message to the requested type.classImplementation ofMessageConverterthat can read and write JSON using Google Gson.classImplementation ofMessageConverterthat can read and write JSON using the JSON Binding API.classImplementation ofMessageConverterthat can read and write JSON using kotlinx.serialization.classA Jackson 2 basedMessageConverterimplementation.classImplementation ofMessageConverterthat can read and write XML using Spring'sMarshallerandUnmarshallerabstractions.classSubclass ofProtobufMessageConverterfor use with the official"com.google.protobuf:protobuf-java-util"library for JSON support.classAnMessageConverterthat reads and writescom.google.protobuf.Messagesusing Google Protocol Buffers.classA simple converter that simply unwraps the message payload as long as it matches the expected target class.classAMessageConverterthat supports MIME type "text/plain" with the payload converted to and from a String.Methods in org.springframework.messaging.converter that return types with arguments of type MessageConverterModifier and TypeMethodDescriptionCompositeMessageConverter.getConverters()Return the underlying list of delegate converters.Constructor parameters in org.springframework.messaging.converter with type arguments of type MessageConverterModifierConstructorDescriptionCompositeMessageConverter(Collection<MessageConverter> converters) Create an instance with the given converters. -
Uses of MessageConverter in org.springframework.messaging.core
Methods in org.springframework.messaging.core that return MessageConverterModifier and TypeMethodDescriptionAbstractMessageSendingTemplate.getMessageConverter()Return the configuredMessageConverter.Methods in org.springframework.messaging.core with parameters of type MessageConverterModifier and TypeMethodDescriptionvoidAbstractMessageSendingTemplate.setMessageConverter(MessageConverter messageConverter) Set theMessageConverterto use inconvertAndSendmethods. -
Uses of MessageConverter in org.springframework.messaging.handler.annotation.support
Methods in org.springframework.messaging.handler.annotation.support with parameters of type MessageConverterModifier and TypeMethodDescriptionvoidDefaultMessageHandlerMethodFactory.setMessageConverter(MessageConverter messageConverter) Set theMessageConverterto use.Constructors in org.springframework.messaging.handler.annotation.support with parameters of type MessageConverterModifierConstructorDescriptionMessageMethodArgumentResolver(MessageConverter converter) Create a resolver instance with the givenMessageConverter.PayloadMethodArgumentResolver(MessageConverter messageConverter) Create a newPayloadArgumentResolverwith the givenMessageConverter.PayloadMethodArgumentResolver(MessageConverter messageConverter, Validator validator) PayloadMethodArgumentResolver(MessageConverter messageConverter, Validator validator, boolean useDefaultResolution) -
Uses of MessageConverter in org.springframework.messaging.simp.annotation.support
Methods in org.springframework.messaging.simp.annotation.support that return MessageConverterModifier and TypeMethodDescriptionSimpAnnotationMethodMessageHandler.getMessageConverter()Return the configuredMessageConverter.Methods in org.springframework.messaging.simp.annotation.support with parameters of type MessageConverterModifier and TypeMethodDescriptionvoidSimpAnnotationMethodMessageHandler.setMessageConverter(MessageConverter converter) Configure aMessageConverterto use to convert the payload of a message from its serialized form with a specific MIME type to an Object matching the target method parameter. -
Uses of MessageConverter in org.springframework.messaging.simp.config
Method parameters in org.springframework.messaging.simp.config with type arguments of type MessageConverterModifier and TypeMethodDescriptionprotected booleanAbstractMessageBrokerConfiguration.configureMessageConverters(List<MessageConverter> messageConverters) Override this method to add custom message converters. -
Uses of MessageConverter in org.springframework.messaging.simp.stomp
Methods in org.springframework.messaging.simp.stomp that return MessageConverterModifier and TypeMethodDescriptionDefaultStompSession.getMessageConverter()Return the configuredMessageConverter.StompClientSupport.getMessageConverter()Return the configuredMessageConverter.Methods in org.springframework.messaging.simp.stomp with parameters of type MessageConverterModifier and TypeMethodDescriptionvoidDefaultStompSession.setMessageConverter(MessageConverter messageConverter) Set theMessageConverterto use to convert the payload of incoming and outgoing messages to and frombyte[]based on object type, or expected object type, and the "content-type" header.voidStompClientSupport.setMessageConverter(MessageConverter messageConverter) Set theMessageConverterto use to convert the payload of incoming and outgoing messages to and frombyte[]based on object type and the "content-type" header. -
Uses of MessageConverter in org.springframework.web.socket.config.annotation
Method parameters in org.springframework.web.socket.config.annotation with type arguments of type MessageConverterModifier and TypeMethodDescriptionprotected booleanDelegatingWebSocketMessageBrokerConfiguration.configureMessageConverters(List<MessageConverter> messageConverters) default booleanWebSocketMessageBrokerConfigurer.configureMessageConverters(List<MessageConverter> messageConverters) Configure the message converters to use when extracting the payload of messages in annotated methods and when sending messages (e.g.