Uses of Class
org.codehaus.jackson.map.ObjectMapper
-
Packages that use ObjectMapper Package Description org.codehaus.jackson.jaxrs Jackson-based JAX-RS provider that can automatically serialize and deserialize resources for JSON content type (MediaType).org.codehaus.jackson.map Contains basic mapper (conversion) functionality that allows for converting between regular streaming json content and Java objects (beans or Tree Model: support for both is viaObjectMapperclass, as well as convenience methods included inJsonParser -
-
Uses of ObjectMapper in org.codehaus.jackson.jaxrs
Fields in org.codehaus.jackson.jaxrs declared as ObjectMapper Modifier and Type Field Description protected ObjectMapperMapperConfigurator. _defaultMapperIf no mapper was specified when constructed, and no configuration calls are made, a default mapper is constructed.protected ObjectMapperMapperConfigurator. _mapperMapper provider was constructed with if any, or that was constructed due to a call to explicitly configure mapper.Methods in org.codehaus.jackson.jaxrs that return ObjectMapper Modifier and Type Method Description ObjectMapperMapperConfigurator. getConfiguredMapper()Method that locates, configures and returnsObjectMapperto useObjectMapperMapperConfigurator. getDefaultMapper()ObjectMapperJacksonJsonProvider. locateMapper(Class<?> type, javax.ws.rs.core.MediaType mediaType)Method called to locateObjectMapperto use for serialization and deserialization.protected ObjectMapperMapperConfigurator. mapper()Helper method that will ensure that there is a configurable non-default mapper (constructing an instance if one didn't yet exit), and return that mapper.Methods in org.codehaus.jackson.jaxrs with parameters of type ObjectMapper Modifier and Type Method Description protected Class<?>JacksonJsonProvider. _findView(ObjectMapper mapper, Annotation[] annotations)protected voidMapperConfigurator. _setAnnotations(ObjectMapper mapper, Annotations[] annotationsToUse)voidJacksonJsonProvider. setMapper(ObjectMapper m)Method that can be used to directly defineObjectMapperto use for serialization and deserialization; if null, will use the standard provider discovery from context instead.voidMapperConfigurator. setMapper(ObjectMapper m)Constructors in org.codehaus.jackson.jaxrs with parameters of type ObjectMapper Constructor Description JacksonJaxbJsonProvider(ObjectMapper mapper, Annotations[] annotationsToUse)Constructor to use when a custom mapper (usually components like serializer/deserializer factories that have been configured) is to be used.JacksonJsonProvider(ObjectMapper mapper)JacksonJsonProvider(ObjectMapper mapper, Annotations[] annotationsToUse)Constructor to use when a custom mapper (usually components like serializer/deserializer factories that have been configured) is to be used.MapperConfigurator(ObjectMapper mapper, Annotations[] defAnnotations) -
Uses of ObjectMapper in org.codehaus.jackson.map
Methods in org.codehaus.jackson.map that return ObjectMapper Modifier and Type Method Description ObjectMapperObjectMapper. configure(JsonGenerator.Feature f, boolean state)Method for changing state of an on/offJsonGeneratorfeature forJsonFactoryinstance this object mapper uses.ObjectMapperObjectMapper. configure(JsonParser.Feature f, boolean state)Method for changing state of an on/offJsonParserfeature forJsonFactoryinstance this object mapper uses.ObjectMapperObjectMapper. configure(DeserializationConfig.Feature f, boolean state)Method for changing state of an on/off deserialization feature for this object mapper.ObjectMapperObjectMapper. configure(SerializationConfig.Feature f, boolean state)Method for changing state of an on/off serialization feature for this object mapper.ObjectMapperObjectMapper. disable(DeserializationConfig.Feature... f)Method for enabling specifiedDeserializationConfigfeatures.ObjectMapperObjectMapper. disable(SerializationConfig.Feature... f)Method for enabling specifiedDeserializationConfigfeatures.ObjectMapperObjectMapper. disableDefaultTyping()Method for disabling automatic inclusion of type information; if so, only explicitly annotated types (ones withJsonTypeInfo) will have additional embedded type information.ObjectMapperObjectMapper. enable(DeserializationConfig.Feature... f)Method for enabling specifiedDeserializationConfigfeatures.ObjectMapperObjectMapper. enable(SerializationConfig.Feature... f)Method for enabling specifiedDeserializationConfigfeatures.ObjectMapperObjectMapper. enableDefaultTyping()Convenience method that is equivalent to callingObjectMapperObjectMapper. enableDefaultTyping(ObjectMapper.DefaultTyping dti)Convenience method that is equivalent to callingObjectMapperObjectMapper. enableDefaultTyping(ObjectMapper.DefaultTyping applicability, JsonTypeInfo.As includeAs)Method for enabling automatic inclusion of type information, needed for proper deserialization of polymorphic types (unless types have been annotated withJsonTypeInfo).ObjectMapperObjectMapper. enableDefaultTypingAsProperty(ObjectMapper.DefaultTyping applicability, String propertyName)Method for enabling automatic inclusion of type information -- needed for proper deserialization of polymorphic types (unless types have been annotated withJsonTypeInfo) -- using "As.PROPERTY" inclusion mechanism and specified property name to use for inclusion (default being "@class" since default type information always uses class name as type identifier)ObjectMapperMappingJsonFactory. getCodec()We'll override the method to return more specific type; co-variance helps hereObjectMapperObjectMapper. setAnnotationIntrospector(AnnotationIntrospector ai)Method for changingAnnotationIntrospectorused by this mapper instance for both serialization and deserializationObjectMapperObjectMapper. setDefaultTyping(TypeResolverBuilder<?> typer)Method for enabling automatic inclusion of type information, using specified handler object for determining which types this affects, as well as details of how information is embedded.ObjectMapperObjectMapper. setDeserializationConfig(DeserializationConfig cfg)Method for replacing the shared default deserialization configuration object.ObjectMapperObjectMapper. setDeserializerProvider(DeserializerProvider p)Method for setting specificDeserializerProviderto use for handling caching ofJsonDeserializerinstances.ObjectMapperObjectMapper. setInjectableValues(InjectableValues injectableValues)ObjectMapperObjectMapper. setNodeFactory(JsonNodeFactory f)Method for specifyingJsonNodeFactoryto use for constructing root level tree nodes (via methodcreateObjectNode()ObjectMapperObjectMapper. setPropertyNamingStrategy(PropertyNamingStrategy s)Method for setting custom property naming strategy to use.ObjectMapperObjectMapper. setSerializationConfig(SerializationConfig cfg)Method for replacing the shared default serialization configuration object.ObjectMapperObjectMapper. setSerializationInclusion(JsonSerialize.Inclusion incl)Method for setting defalt POJO property inclusion strategy for serialization.ObjectMapperObjectMapper. setSerializerFactory(SerializerFactory f)Method for setting specificSerializerFactoryto use for constructing (bean) serializers.ObjectMapperObjectMapper. setSerializerProvider(SerializerProvider p)Method for setting specificSerializerProviderto use for handling caching ofJsonSerializerinstances.ObjectMapperObjectMapper. setTypeFactory(TypeFactory f)Method that can be used to overrideTypeFactoryinstance used by this mapper.ObjectMapperObjectMapper. setVisibility(JsonMethod forMethod, JsonAutoDetect.Visibility visibility)Convenience method that allows changing configuration for underlyingVisibilityCheckers, to change details of what kinds of properties are auto-detected.ObjectMapperObjectMapper. withModule(Module module)Fluent-style alternative toregisterModule(org.codehaus.jackson.map.Module); functionally equivalent to:Constructors in org.codehaus.jackson.map with parameters of type ObjectMapper Constructor Description MappingJsonFactory(ObjectMapper mapper)ObjectReader(ObjectMapper mapper, DeserializationConfig config)Constructor used byObjectMapperfor initial instantiationObjectReader(ObjectMapper mapper, DeserializationConfig config, JavaType valueType, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues)ObjectWriter(ObjectMapper mapper, SerializationConfig config)Alternative constructor for initial instantiation.ObjectWriter(ObjectMapper mapper, SerializationConfig config, FormatSchema s)Alternative constructor for initial instantiation.ObjectWriter(ObjectMapper mapper, SerializationConfig config, JavaType rootType, PrettyPrinter pp)Constructor used byObjectMapperfor initial instantiation
-