|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ObjectMapper | |
---|---|
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 via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
Uses of ObjectMapper in org.codehaus.jackson.jaxrs |
---|
Fields in org.codehaus.jackson.jaxrs declared as ObjectMapper | |
---|---|
protected ObjectMapper |
MapperConfigurator._defaultMapper
If no mapper was specified when constructed, and no configuration calls are made, a default mapper is constructed. |
protected ObjectMapper |
MapperConfigurator._mapper
Mapper 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 | |
---|---|
ObjectMapper |
MapperConfigurator.getConfiguredMapper()
Method that locates, configures and returns ObjectMapper to use |
ObjectMapper |
MapperConfigurator.getDefaultMapper()
|
ObjectMapper |
JacksonJsonProvider.locateMapper(Class<?> type,
MediaType mediaType)
Method called to locate ObjectMapper to use for serialization
and deserialization. |
protected ObjectMapper |
MapperConfigurator.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 | |
---|---|
protected void |
MapperConfigurator._setAnnotations(ObjectMapper mapper,
Annotations[] annotationsToUse)
|
void |
JacksonJsonProvider.setMapper(ObjectMapper m)
Method that can be used to directly define ObjectMapper to use
for serialization and deserialization; if null, will use the standard
provider discovery from context instead. |
void |
MapperConfigurator.setMapper(ObjectMapper m)
|
Constructors in org.codehaus.jackson.jaxrs with parameters of type ObjectMapper | |
---|---|
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 |
---|
Fields in org.codehaus.jackson.map declared as ObjectMapper | |
---|---|
protected ObjectMapper |
TreeMapper._objectMapper
Deprecated. Mapper that handles actual serialization/deserialization |
Methods in org.codehaus.jackson.map that return ObjectMapper | |
---|---|
ObjectMapper |
ObjectMapper.configure(DeserializationConfig.Feature f,
boolean state)
Method for changing state of an on/off deserialization feature for this object mapper. |
ObjectMapper |
ObjectMapper.configure(JsonGenerator.Feature f,
boolean state)
Method for changing state of an on/off JsonGenerator feature for
JsonFactory instance this object mapper uses. |
ObjectMapper |
ObjectMapper.configure(JsonParser.Feature f,
boolean state)
Method for changing state of an on/off JsonParser feature for
JsonFactory instance this object mapper uses. |
ObjectMapper |
ObjectMapper.configure(SerializationConfig.Feature f,
boolean state)
Method for changing state of an on/off serialization feature for this object mapper. |
ObjectMapper |
ObjectMapper.disableDefaultTyping()
Method for disabling automatic inclusion of type information; if so, only explicitly annotated types (ones with JsonTypeInfo ) will have
additional embedded type information. |
ObjectMapper |
ObjectMapper.enableDefaultTyping()
Convenience method that is equivalent to calling |
ObjectMapper |
ObjectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping dti)
Convenience method that is equivalent to calling |
ObjectMapper |
ObjectMapper.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 with JsonTypeInfo ). |
ObjectMapper |
ObjectMapper.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 with JsonTypeInfo ) --
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) |
ObjectMapper |
MappingJsonFactory.getCodec()
We'll override the method to return more specific type; co-variance helps here |
protected ObjectMapper |
TreeMapper.objectMapper()
Deprecated. |
ObjectMapper |
ObjectMapper.setAnnotationIntrospector(AnnotationIntrospector ai)
Method for changing AnnotationIntrospector used by this
mapper instance for both serialization and deserialization |
ObjectMapper |
ObjectMapper.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. |
ObjectMapper |
ObjectMapper.setDeserializationConfig(DeserializationConfig cfg)
Method for replacing the shared default deserialization configuration object. |
ObjectMapper |
ObjectMapper.setDeserializerProvider(DeserializerProvider p)
Method for setting specific DeserializerProvider to use
for handling caching of JsonDeserializer instances. |
ObjectMapper |
ObjectMapper.setNodeFactory(JsonNodeFactory f)
Method for specifying JsonNodeFactory to use for
constructing root level tree nodes (via method
createObjectNode() |
ObjectMapper |
ObjectMapper.setPropertyNamingStrategy(PropertyNamingStrategy s)
Method for setting custom property naming strategy to use. |
ObjectMapper |
ObjectMapper.setSerializationConfig(SerializationConfig cfg)
Method for replacing the shared default serialization configuration object. |
ObjectMapper |
ObjectMapper.setSerializerFactory(SerializerFactory f)
Method for setting specific SerializerFactory to use
for constructing (bean) serializers. |
ObjectMapper |
ObjectMapper.setSerializerProvider(SerializerProvider p)
Method for setting specific SerializerProvider to use
for handling caching of JsonSerializer instances. |
ObjectMapper |
ObjectMapper.setTypeFactory(TypeFactory f)
Method that can be used to override TypeFactory instance
used by this mapper. |
ObjectMapper |
ObjectMapper.withModule(Module module)
Fluent-style alternative to registerModule(org.codehaus.jackson.map.Module) ; functionally equivalent to: |
Constructors in org.codehaus.jackson.map with parameters of type ObjectMapper | |
---|---|
MappingJsonFactory(ObjectMapper mapper)
|
|
ObjectReader(ObjectMapper mapper,
DeserializationConfig config)
Constructor used by ObjectMapper for initial instantiation |
|
ObjectReader(ObjectMapper mapper,
DeserializationConfig config,
JavaType valueType,
Object valueToUpdate,
FormatSchema schema)
|
|
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 by ObjectMapper for initial instantiation |
|
TreeMapper(ObjectMapper m)
Deprecated. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |