spring-framework / org.springframework.http.converter.xml / Jaxb2CollectionHttpMessageConverter / canRead

canRead

open fun canRead(clazz: Class<*>, @Nullable mediaType: MediaType): Boolean

Always returns false since Jaxb2CollectionHttpMessageConverter required generic type information in order to read a Collection.

open fun canRead(type: Type, @Nullable contextClass: Class<*>, @Nullable mediaType: MediaType): Boolean

{@inheritDoc}

Jaxb2CollectionHttpMessageConverter can read a generic Collection where the generic type is a JAXB type annotated with XmlRootElement or XmlType.