Package com.unboundid.scim2.common.utils
Class MapperFactory
- java.lang.Object
-
- com.unboundid.scim2.common.utils.MapperFactory
-
public class MapperFactory extends Object
Class used to customize the object mapper that is used by the SCIM 2 SDK.
-
-
Constructor Summary
Constructors Constructor Description MapperFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper()
Creates a custom SCIM compatible Jackson ObjectMapper.MapperFactory
setDeserializationCustomFeatures(Map<com.fasterxml.jackson.databind.DeserializationFeature,Boolean> customFeatures)
Sets custom deserialization features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK.MapperFactory
setJsonGeneratorCustomFeatures(Map<com.fasterxml.jackson.core.JsonGenerator.Feature,Boolean> customFeatures)
Sets custom JSON generator features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK.MapperFactory
setJsonParserCustomFeatures(Map<com.fasterxml.jackson.core.JsonParser.Feature,Boolean> customFeatures)
Sets custom JSON parser features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK.MapperFactory
setMapperCustomFeatures(Map<com.fasterxml.jackson.databind.MapperFeature,Boolean> customFeatures)
Sets custom mapper features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK.MapperFactory
setSerializationCustomFeatures(Map<com.fasterxml.jackson.databind.SerializationFeature,Boolean> customFeatures)
Sets custom serialization features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK.
-
-
-
Constructor Detail
-
MapperFactory
public MapperFactory()
-
-
Method Detail
-
setDeserializationCustomFeatures
public MapperFactory setDeserializationCustomFeatures(Map<com.fasterxml.jackson.databind.DeserializationFeature,Boolean> customFeatures)
Sets custom deserialization features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK. This class should be used to configure any object mapper customizations needed prior to using any method in the JsonUtils class.- Parameters:
customFeatures
- The list of custom deserialization feature settings.- Returns:
- this object.
-
setJsonGeneratorCustomFeatures
public MapperFactory setJsonGeneratorCustomFeatures(Map<com.fasterxml.jackson.core.JsonGenerator.Feature,Boolean> customFeatures)
Sets custom JSON generator features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK. This class should be used to configure any object mapper customizations needed prior to using any method in the JsonUtils class.- Parameters:
customFeatures
- The list of custom JSON generator feature settings.- Returns:
- this object.
-
setJsonParserCustomFeatures
public MapperFactory setJsonParserCustomFeatures(Map<com.fasterxml.jackson.core.JsonParser.Feature,Boolean> customFeatures)
Sets custom JSON parser features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK. This class should be used to configure any object mapper customizations needed prior to using any method in the JsonUtils class.- Parameters:
customFeatures
- The list of custom JSON parser feature settings.- Returns:
- this object.
-
setMapperCustomFeatures
public MapperFactory setMapperCustomFeatures(Map<com.fasterxml.jackson.databind.MapperFeature,Boolean> customFeatures)
Sets custom mapper features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK. This class should be used to configure any object mapper customizations needed prior to using any method in the JsonUtils class.- Parameters:
customFeatures
- The list of custom mapper feature settings.- Returns:
- this object.
-
setSerializationCustomFeatures
public MapperFactory setSerializationCustomFeatures(Map<com.fasterxml.jackson.databind.SerializationFeature,Boolean> customFeatures)
Sets custom serialization features for any JSON ObjectMapper that is used and returned by the SCIM 2 SDK. This class should be used to configure any object mapper customizations needed prior to using any method in the JsonUtils class.- Parameters:
customFeatures
- The list of custom serialization feature settings.- Returns:
- this object.
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
Creates a custom SCIM compatible Jackson ObjectMapper. Creating new ObjectMapper instances are expensive so instances should be shared if possible. This can be used to set the factory used to build new instances of the object mapper used by the SCIM 2 SDK.- Returns:
- an Object Mapper with the correct options set for serializing and deserializing SCIM JSON objects.
-
-