spring-framework / org.springframework.http.converter.xml

Package org.springframework.http.converter.xml

Types

Jaxb2CollectionHttpMessageConverter

open class Jaxb2CollectionHttpMessageConverter<T : MutableCollection<Any?>> : AbstractJaxb2HttpMessageConverter<T>, GenericHttpMessageConverter<T>

An HttpMessageConverter that can read XML collections using JAXB2.

This converter can read Collection that contain classes annotated with XmlRootElement and XmlType. Note that this converter does not support writing.

Jaxb2RootElementHttpMessageConverter

open class Jaxb2RootElementHttpMessageConverter : AbstractJaxb2HttpMessageConverter<Any>

Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write XML using JAXB2.

This converter can read classes annotated with XmlRootElement and XmlType, and write classes annotated with XmlRootElement, or subclasses thereof.

Note: When using Spring's Marshaller/Unmarshaller abstractions from spring-oxm, you should use the MarshallingHttpMessageConverter instead.

MappingJackson2XmlHttpMessageConverter

open class MappingJackson2XmlHttpMessageConverter : AbstractJackson2HttpMessageConverter

Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write XML using Jackson 2.x extension component for reading and writing XML encoded data.

By default, this converter supports application/xml, text/xml, and application/*+xml with UTF-8 character set. This can be overridden by setting the supportedMediaTypes property.

The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder.

Compatible with Jackson 2.9 and higher, as of Spring 5.0.

MarshallingHttpMessageConverter

open class MarshallingHttpMessageConverter : AbstractXmlHttpMessageConverter<Any>

Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write XML using Spring's Marshaller and Unmarshaller abstractions.

This converter requires a Marshaller and Unmarshaller before it can be used. These can be injected by the constructor or bean properties.

By default, this converter supports text/xml and application/xml. This can be overridden by setting the supportedMediaTypes property.

SourceHttpMessageConverter

open class SourceHttpMessageConverter<T : Source> : AbstractHttpMessageConverter<T>

Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write Source objects.