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.
org.springframework.web.servlet.view.json.MappingJackson2JsonView
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_CONTENT_TYPE
Hides org. |
| private String |
| Access | Constructor and Description |
|---|---|
| public | MappingJackson2XmlView()
Construct a new |
| public | MappingJackson2XmlView(XmlMapper xmlMapper)
Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | filterModel(Map<String, Object>
the model, as passed on to model)renderMergedOutputModelImplements abstract org. Filter out undesired attributes from the given model. |
| public void | setModelKey(String modelKey)
Implements abstract org. Set the attribute in the model that should be rendered by this view. |
| DEFAULT_CONTENT_TYPE | back to summary |
|---|---|
| public static final String DEFAULT_CONTENT_TYPE Hides org. The default content type for the view. | |
| modelKey | back to summary |
|---|---|
| private String modelKey
| |
| MappingJackson2XmlView | back to summary |
|---|---|
| public MappingJackson2XmlView() Construct a new | |
| MappingJackson2XmlView | back to summary |
|---|---|
| public MappingJackson2XmlView(XmlMapper xmlMapper) Construct a new
| |
| filterModel | back to summary |
|---|---|
| protected Object filterModel(Map<String, Object> model) Implements abstract org. Doc from org. Filter out undesired attributes from the given model.
The return value can be either another | |
| setModelKey | back to summary |
|---|---|
| public void setModelKey(String modelKey) Implements abstract org. Doc from org. Set the attribute in the model that should be rendered by this view. When set, all other model attributes will be ignored.
| |