abstract class AbstractJackson2HttpMessageConverter : AbstractGenericHttpMessageConverter<Any>
Abstract base class for Jackson based and content type independent HttpMessageConverter implementations.
Compatible with Jackson 2.9 and higher, as of Spring 5.0.
Author
Arjen Poutsma
Author
Keith Donald
Author
Rossen Stoyanchev
Author
Juergen Hoeller
Author
Sebastien Deleuze
Since
4.1
static val DEFAULT_CHARSET: Charset |
open fun canRead(clazz: Class<*>, mediaType: MediaType): Boolean open fun canRead(type: Type, contextClass: Class<*>, mediaType: MediaType): Boolean |
|
open fun canWrite(clazz: Class<*>, mediaType: MediaType): Boolean |
|
open fun getObjectMapper(): ObjectMapper
Return the underlying |
|
open fun read(type: Type, contextClass: Class<*>, inputMessage: HttpInputMessage): Any |
|
open fun setObjectMapper(objectMapper: ObjectMapper): Unit
Set the Setting a custom-configured |
|
open fun setPrettyPrint(prettyPrint: Boolean): Unit
Whether to use the DefaultPrettyPrinter when writing JSON. This is a shortcut for setting up an
|
open class MappingJackson2CborHttpMessageConverter : AbstractJackson2HttpMessageConverter
Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write CBOR data format using the dedicated Jackson 2.x extension. By default, this converter supports The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder. Compatible with Jackson 2.9 and higher. |
|
open class MappingJackson2HttpMessageConverter : AbstractJackson2HttpMessageConverter
Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write JSON using Jackson 2.x's ObjectMapper. This converter can be used to bind to typed beans, or untyped By default, this converter supports The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder. Compatible with Jackson 2.9 and higher, as of Spring 5.0. |
|
open class MappingJackson2SmileHttpMessageConverter : AbstractJackson2HttpMessageConverter
Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write Smile data format ("binary JSON") using the dedicated Jackson 2.x extension. By default, this converter supports The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder. Compatible with Jackson 2.9 and higher. |
|
open class MappingJackson2XmlHttpMessageConverter : AbstractJackson2HttpMessageConverter
Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write XML using Jackson 2.x extension component for reading and writing XML encoded data. By default, this converter supports The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder. Compatible with Jackson 2.9 and higher, as of Spring 5.0. |