public static final class JacksonMapper.Builder
extends java.lang.Object
JacksonMapper instances.
Usage:
JacksonMapper mapper = JacksonMapper.builder()
.registerModule(new JodaModule())
.enable(JsonGenerator.Feature.ESCAPE_NON_ASCII)
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.build();
| Modifier and Type | Method and Description |
|---|---|
JacksonMapper |
build()
Creates a new
JacksonMapper. |
JacksonMapper.Builder |
disable(com.fasterxml.jackson.databind.DeserializationFeature... features)
Disable the
DeserializationFeature(s) in the mapper. |
JacksonMapper.Builder |
disable(com.fasterxml.jackson.core.JsonGenerator.Feature... features)
Disable the
JsonGenerator.Feature(s) in the mapper. |
JacksonMapper.Builder |
disable(com.fasterxml.jackson.core.JsonParser.Feature... features)
Disable the
JsonParser.Feature(s) in the mapper. |
JacksonMapper.Builder |
disable(com.fasterxml.jackson.databind.MapperFeature... features)
Disable the
MapperFeature(s) in the mapper. |
JacksonMapper.Builder |
disable(com.fasterxml.jackson.databind.SerializationFeature... features)
Disable the
SerializationFeature(s) in the mapper. |
JacksonMapper.Builder |
enable(com.fasterxml.jackson.databind.DeserializationFeature... features)
Enable the
DeserializationFeature(s) in the mapper. |
JacksonMapper.Builder |
enable(com.fasterxml.jackson.core.JsonGenerator.Feature... features)
Enable the
JsonGenerator.Feature(s) in the mapper. |
JacksonMapper.Builder |
enable(com.fasterxml.jackson.core.JsonParser.Feature... features)
Enable the
JsonParser.Feature(s) in the mapper. |
JacksonMapper.Builder |
enable(com.fasterxml.jackson.databind.MapperFeature... features)
Enable the
MapperFeature(s) in the mapper. |
JacksonMapper.Builder |
enable(com.fasterxml.jackson.databind.SerializationFeature... features)
Enable the
SerializationFeature(s) in the mapper. |
JacksonMapper.Builder |
registerModule(com.fasterxml.jackson.databind.Module module)
Register a new
Module with the mapper. |
public JacksonMapper.Builder registerModule(@NonNull com.fasterxml.jackson.databind.Module module)
Module with the mapper.module - The Module to register.public JacksonMapper.Builder enable(@NonNull com.fasterxml.jackson.databind.DeserializationFeature... features)
DeserializationFeature(s) in the mapper.features - The feature to enable in the mapper.public JacksonMapper.Builder enable(@NonNull com.fasterxml.jackson.databind.MapperFeature... features)
MapperFeature(s) in the mapper.features - The feature to enable in the mapper.public JacksonMapper.Builder enable(@NonNull com.fasterxml.jackson.databind.SerializationFeature... features)
SerializationFeature(s) in the mapper.features - The feature to enable in the mapper.public JacksonMapper.Builder enable(@NonNull com.fasterxml.jackson.core.JsonGenerator.Feature... features)
JsonGenerator.Feature(s) in the mapper.features - The features to enable in the mapper.public JacksonMapper.Builder enable(@NonNull com.fasterxml.jackson.core.JsonParser.Feature... features)
JsonParser.Feature(s) in the mapper.features - The features to enable in the mapper.public JacksonMapper.Builder disable(@NonNull com.fasterxml.jackson.databind.DeserializationFeature... features)
DeserializationFeature(s) in the mapper.features - The features to disable in the mapper.public JacksonMapper.Builder disable(@NonNull com.fasterxml.jackson.databind.MapperFeature... features)
MapperFeature(s) in the mapper.features - The features to disable in the mapper.public JacksonMapper.Builder disable(@NonNull com.fasterxml.jackson.databind.SerializationFeature... features)
SerializationFeature(s) in the mapper.features - The features to disable in the mapper.public JacksonMapper.Builder disable(@NonNull com.fasterxml.jackson.core.JsonGenerator.Feature... features)
JsonGenerator.Feature(s) in the mapper.features - The features to disable in the mapper.public JacksonMapper.Builder disable(@NonNull com.fasterxml.jackson.core.JsonParser.Feature... features)
JsonParser.Feature(s) in the mapper.features - The features to disable in the mapper.public JacksonMapper build()
JacksonMapper.JacksonMapper.