Class MappingJackson2XmlView

All Implemented Interfaces:
Aware, BeanNameAware, ApplicationContextAware, ServletContextAware, View

@Deprecated(since="7.0", forRemoval=true) public class MappingJackson2XmlView extends AbstractJackson2View
Deprecated, for removal: This API element is subject to removal in a future version.
since 7.0 in favor of JacksonXmlView
Spring MVC View that renders XML content by serializing the model for the current request using Jackson 2's XmlMapper.

The Object to be serialized is supplied as a parameter in the model. The first serializable entry is used. Users can either specify a specific entry in the model via the sourceKey property.

The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder.

Since:
4.1
Author:
Sebastien Deleuze
See Also:
  • Field Details

    • DEFAULT_CONTENT_TYPE

      public static final String DEFAULT_CONTENT_TYPE
      Deprecated, for removal: This API element is subject to removal in a future version.
      The default content type for the view.
      See Also:
  • Constructor Details

    • MappingJackson2XmlView

      public MappingJackson2XmlView()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Construct a new MappingJackson2XmlView using default configuration provided by Jackson2ObjectMapperBuilder and setting the content type to application/xml.
    • MappingJackson2XmlView

      public MappingJackson2XmlView(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Construct a new MappingJackson2XmlView using the provided XmlMapper and setting the content type to application/xml.
      Since:
      4.2.1
  • Method Details