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.
Author
Arjen Poutsma
Author
Sebastien Deleuze
Author
Rossen Stoyanchev
Since
3.0
See Also
MarshallingHttpMessageConverter
Jaxb2RootElementHttpMessageConverter()
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 |
open fun canRead(clazz: Class<*>, mediaType: MediaType): Boolean |
|
open fun canWrite(clazz: Class<*>, mediaType: MediaType): Boolean |
|
open fun isProcessExternalEntities(): Boolean
Returns the configured value for whether XML external entities are allowed. |
|
open fun isSupportDtd(): Boolean
Whether DTD parsing is supported. |
|
open fun setProcessExternalEntities(processExternalEntities: Boolean): Unit
Indicates whether external XML entities are processed when converting to a Source. Default is Note: setting this option to |
|
open fun setSupportDtd(supportDtd: Boolean): Unit
Indicates whether DTD parsing should be supported. Default is |