Package com.google.api.server.spi
Class ConfiguredObjectMapper.Builder
- java.lang.Object
-
- com.google.api.server.spi.ConfiguredObjectMapper.Builder
-
- Enclosing class:
- ConfiguredObjectMapper
public static class ConfiguredObjectMapper.Builder extends Object
A builder for constructingConfiguredObjectMapperinstances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfiguredObjectMapper.BuilderaddRegisteredModules(Iterable<? extends com.fasterxml.jackson.databind.Module> modules)Addsmodulesthat will be registered in the backingObjectMapper.ConfiguredObjectMapper.BuilderapiSerializationConfig(ApiSerializationConfig config)Sets theApiSerializationConfigthat should be used to construct the backingObjectMapper.ConfiguredObjectMapperbuild()Builds aConfiguredObjectMapperusing the configuration specified in this builder.
-
-
-
Method Detail
-
apiSerializationConfig
public ConfiguredObjectMapper.Builder apiSerializationConfig(@Nullable ApiSerializationConfig config)
Sets theApiSerializationConfigthat should be used to construct the backingObjectMapper. This replaces the previous configuration,nullcan be used to clear the previous value.- Parameters:
config- an Api serialization config- Returns:
- the builder
-
addRegisteredModules
public ConfiguredObjectMapper.Builder addRegisteredModules(Iterable<? extends com.fasterxml.jackson.databind.Module> modules)
Addsmodulesthat will be registered in the backingObjectMapper.- Parameters:
modules- modules to register- Returns:
- the builder
-
build
public ConfiguredObjectMapper build()
Builds aConfiguredObjectMapperusing the configuration specified in this builder.- Returns:
- the constructed object
-
-