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.
Author
Arjen Poutsma
Author
Rossen Stoyanchev
Since
3.2
Jaxb2CollectionHttpMessageConverter()
An This converter can read Collection that contain classes annotated with XmlRootElement and XmlType. Note that this converter does not support writing. |
open fun canRead(clazz: Class<*>, mediaType: MediaType): Boolean
Always returns open fun canRead(type: Type, contextClass: Class<*>, mediaType: MediaType): Boolean
{@inheritDoc} Jaxb2CollectionHttpMessageConverter can read a generic Collection where the generic type is a JAXB type annotated with XmlRootElement or XmlType. |
|
open fun canWrite(clazz: Class<*>, mediaType: MediaType): Boolean open fun canWrite(type: Type, clazz: Class<*>, mediaType: MediaType): Boolean
Always returns |
|
open fun read(type: Type, contextClass: Class<*>, inputMessage: HttpInputMessage): T |
|
open fun write(t: T, type: Type, contentType: MediaType, outputMessage: HttpOutputMessage): Unit |