java.lang.Object | ||||
↳ | org.springframework.http.converter.AbstractHttpMessageConverter<T> | |||
↳ | org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<T> | |||
↳ | org.springframework.http.converter.xml.AbstractJaxb2HttpMessageConverter<T> | |||
↳ | org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter |
Implementation of HttpMessageConverter
that can read
and write XML using JAXB2.
This converter can read classes annotated with XmlRootElement and XmlType, and write classes annotated with with XmlRootElement, or subclasses thereof.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.http.converter.AbstractHttpMessageConverter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Indicates whether the given class can be read by this converter.
This implementation checks if the given class is | |||||||||||
Indicates whether the given class can be written by this converter.
This implementation checks if the given class is |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abstract template method called from
read(Class, HttpInputMessage) . | |||||||||||
Indicates whether the given class is supported by this converter.
| |||||||||||
Abstract template method called from
writeInternal(Object, HttpOutputMessage) . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.http.converter.xml.AbstractJaxb2HttpMessageConverter
| |||||||||||
From class
org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter
| |||||||||||
From class
org.springframework.http.converter.AbstractHttpMessageConverter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.http.converter.HttpMessageConverter
|
Indicates whether the given class can be read by this converter.
This implementation checks if the given class is supported
,
and if the supported media types
include
the given media type.
clazz | the class to test for readability |
---|---|
mediaType | the media type to read, can be null if not specified.
Typically the value of a Content-Type header. |
true
if readable; false
otherwise
Indicates whether the given class can be written by this converter.
This implementation checks if the given class is supported
,
and if the supported media types
include
the given media type.
clazz | the class to test for writability |
---|---|
mediaType | the media type to write, can be null if not specified.
Typically the value of an Accept header. |
true
if writable; false
otherwise
Abstract template method called from read(Class, HttpInputMessage)
.
clazz | the type of object to return |
---|---|
headers | the HTTP input headers |
source | the HTTP input body |
IOException |
---|
Indicates whether the given class is supported by this converter.
clazz | the class to test for support |
---|
true
if supported; false
otherwise
Abstract template method called from writeInternal(Object, HttpOutputMessage)
.
o | the object to write to the output message |
---|---|
headers | the HTTP output headers |
result | the HTTP output body |
IOException |
---|