Constructor and Description |
---|
ObjectMapperConfig()
Default object mapper configuration that uses no explicit object mapper.
|
ObjectMapperConfig(ObjectMapper defaultObjectMapper)
Creates an object mapper configuration that uses the specified object mapper as default.
|
ObjectMapperConfig(ObjectMapperType defaultObjectMapperType)
Creates an object mapper configuration that uses the specified object mapper as default.
|
Modifier and Type | Method and Description |
---|---|
ObjectMapperConfig |
and()
Syntactic sugar.
|
ObjectMapper |
defaultObjectMapper() |
ObjectMapperConfig |
defaultObjectMapper(ObjectMapper defaultObjectMapper)
Creates an object mapper configuration that uses the specified object mapper as default.
|
ObjectMapperType |
defaultObjectMapperType() |
ObjectMapperConfig |
defaultObjectMapperType(ObjectMapperType defaultObjectMapperType)
Creates an object mapper configuration that uses the specified object mapper as default.
|
io.restassured.path.json.mapper.factory.GsonObjectMapperFactory |
gsonObjectMapperFactory() |
ObjectMapperConfig |
gsonObjectMapperFactory(io.restassured.path.json.mapper.factory.GsonObjectMapperFactory gsonObjectMapperFactory)
Specify a custom Gson object mapper factory.
|
boolean |
hasDefaultObjectMapper() |
boolean |
hasDefaultObjectMapperType() |
boolean |
isUserConfigured() |
io.restassured.path.json.mapper.factory.Jackson1ObjectMapperFactory |
jackson1ObjectMapperFactory() |
ObjectMapperConfig |
jackson1ObjectMapperFactory(io.restassured.path.json.mapper.factory.Jackson1ObjectMapperFactory jackson1ObjectMapperFactory)
Specify a custom Jackson 1.0 object mapper factory.
|
io.restassured.path.json.mapper.factory.Jackson2ObjectMapperFactory |
jackson2ObjectMapperFactory() |
ObjectMapperConfig |
jackson2ObjectMapperFactory(io.restassured.path.json.mapper.factory.Jackson2ObjectMapperFactory jackson2ObjectMapperFactory)
Specify a custom Jackson 1.0 object mapper factory.
|
io.restassured.path.xml.mapper.factory.JAXBObjectMapperFactory |
jaxbObjectMapperFactory() |
ObjectMapperConfig |
jaxbObjectMapperFactory(io.restassured.path.xml.mapper.factory.JAXBObjectMapperFactory jaxbObjectMapperFactory)
Specify a custom JAXB object mapper factory.
|
io.restassured.path.json.mapper.factory.JohnzonObjectMapperFactory |
johnzonObjectMapperFactory() |
io.restassured.path.json.mapper.factory.JsonbObjectMapperFactory |
jsonbObjectMapperFactory() |
ObjectMapperConfig |
jsonbObjectMapperFactory(io.restassured.path.json.mapper.factory.JsonbObjectMapperFactory jsonbObjectMapperFactory)
Specify a custom JSON-B object mapper factory.
|
static ObjectMapperConfig |
objectMapperConfig() |
public ObjectMapperConfig()
public ObjectMapperConfig(ObjectMapperType defaultObjectMapperType)
defaultObjectMapperType
- The object mapper to use. If null
then classpath scanning will be used.public ObjectMapperConfig(ObjectMapper defaultObjectMapper)
defaultObjectMapper
- The object mapper to use. If null
then classpath scanning will be used.public ObjectMapperType defaultObjectMapperType()
public boolean hasDefaultObjectMapperType()
public ObjectMapperConfig defaultObjectMapperType(ObjectMapperType defaultObjectMapperType)
defaultObjectMapperType
- The object mapper to use. If null
then classpath scanning will be used.public ObjectMapper defaultObjectMapper()
public boolean hasDefaultObjectMapper()
public ObjectMapperConfig defaultObjectMapper(ObjectMapper defaultObjectMapper)
defaultObjectMapper
- The object mapper to use. If null
then classpath scanning will be used.public io.restassured.path.json.mapper.factory.GsonObjectMapperFactory gsonObjectMapperFactory()
public ObjectMapperConfig gsonObjectMapperFactory(io.restassured.path.json.mapper.factory.GsonObjectMapperFactory gsonObjectMapperFactory)
gsonObjectMapperFactory
- The object mapper factorypublic io.restassured.path.json.mapper.factory.Jackson1ObjectMapperFactory jackson1ObjectMapperFactory()
public ObjectMapperConfig jackson1ObjectMapperFactory(io.restassured.path.json.mapper.factory.Jackson1ObjectMapperFactory jackson1ObjectMapperFactory)
jackson1ObjectMapperFactory
- The object mapper factorypublic io.restassured.path.json.mapper.factory.Jackson2ObjectMapperFactory jackson2ObjectMapperFactory()
public ObjectMapperConfig jackson2ObjectMapperFactory(io.restassured.path.json.mapper.factory.Jackson2ObjectMapperFactory jackson2ObjectMapperFactory)
jackson2ObjectMapperFactory
- The object mapper factorypublic io.restassured.path.xml.mapper.factory.JAXBObjectMapperFactory jaxbObjectMapperFactory()
public io.restassured.path.json.mapper.factory.JohnzonObjectMapperFactory johnzonObjectMapperFactory()
public io.restassured.path.json.mapper.factory.JsonbObjectMapperFactory jsonbObjectMapperFactory()
public ObjectMapperConfig jsonbObjectMapperFactory(io.restassured.path.json.mapper.factory.JsonbObjectMapperFactory jsonbObjectMapperFactory)
jsonbObjectMapperFactory
- The object mapper factorypublic ObjectMapperConfig jaxbObjectMapperFactory(io.restassured.path.xml.mapper.factory.JAXBObjectMapperFactory jaxbObjectMapperFactory)
jaxbObjectMapperFactory
- The object mapper factorypublic static ObjectMapperConfig objectMapperConfig()
public ObjectMapperConfig and()
public boolean isUserConfigured()
isUserConfigured
in interface Config
true
if this config instance has been explicitly configured by the user, false
if it has the default values.Copyright © 2010–2020. All rights reserved.