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. |
|
abstract class GsonBuilderUtils
A simple utility class for obtaining a Google Gson 2.x GsonBuilder which Base64-encodes |
|
open class GsonHttpMessageConverter : AbstractJsonHttpMessageConverter
Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write JSON using the Google Gson library. This converter can be used to bind to typed beans or untyped Tested against Gson 2.6; compatible with Gson 2.0 and higher. |
|
open class Jackson2ObjectMapperFactoryBean : FactoryBean<ObjectMapper>, BeanClassLoaderAware, ApplicationContextAware, InitializingBean
A FactoryBean for creating a Jackson 2.x ObjectMapper (default) or XmlMapper ( It customizes Jackson defaults properties with the following ones:
Example usage with MappingJackson2HttpMessageConverter:
Example usage with MappingJackson2JsonView:
In case there are no specific setters provided (for some rarely used options), you can still use the more general methods
It also automatically registers the following well-known modules if they are detected on the classpath:
In case you want to configure Jackson's ObjectMapper with a custom Module, you can register one or more such Modules by class name via
Compatible with Jackson 2.6 and higher, as of Spring 4.3. |
|
open class JsonbHttpMessageConverter : AbstractJsonHttpMessageConverter
Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write JSON using the JSON Binding API. This converter can be used to bind to typed beans or untyped |
|
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 MappingJacksonInputMessage : HttpInputMessage
HttpInputMessage that can eventually stores a Jackson view that will be used to deserialize the message. |
|
open class MappingJacksonValue
A simple holder for the POJO to serialize via MappingJackson2HttpMessageConverter along with further serialization instructions to be passed in to the converter. On the server side this wrapper is added with a On the client side, simply wrap the POJO and pass it in to the |
|
open class SpringHandlerInstantiator : HandlerInstantiator
Allows for creating Jackson (JsonSerializer, JsonDeserializer, KeyDeserializer, TypeResolverBuilder, TypeIdResolver) beans with autowiring against a Spring ApplicationContext. As of Spring 4.3, this overrides all factory methods in HandlerInstantiator, including non-abstract ones and recently introduced ones from Jackson 2.4 and 2.5: for ValueInstantiator, ObjectIdGenerator, ObjectIdResolver, PropertyNamingStrategy, Converter, VirtualBeanPropertyWriter. |