spring-framework / org.springframework.messaging.converter / MarshallingMessageConverter / <init>

<init>

MarshallingMessageConverter()

Default construct allowing for #setMarshaller(Marshaller) and/or #setUnmarshaller(Unmarshaller) to be invoked separately.

MarshallingMessageConverter(vararg supportedMimeTypes: MimeType)

Constructor with a given list of MIME types to support.

Parameters

supportedMimeTypes - the MIME types

MarshallingMessageConverter(marshaller: Marshaller)

Constructor with Marshaller. If the given Marshaller also implements Unmarshaller, it is also used for unmarshalling.

Note that all Marshaller implementations in Spring also implement Unmarshaller so that you can safely use this constructor.

Parameters

marshaller - object used as marshaller and unmarshaller