Package kong.unirest.jackson
Class JacksonObjectMapper
- java.lang.Object
-
- kong.unirest.jackson.JacksonObjectMapper
-
- All Implemented Interfaces:
ObjectMapper
public class JacksonObjectMapper extends Object implements ObjectMapper
-
-
Constructor Summary
Constructors Constructor Description JacksonObjectMapper()JacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper om)JacksonObjectMapper(Consumer<com.fasterxml.jackson.databind.ObjectMapper> configurations)Pass in any additional ObjectMapper configurations you want
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.ObjectMappergetJacksonMapper()<T> TreadValue(String value, Class<T> valueType)<T> TreadValue(String value, GenericType<T> genericType)StringwriteValue(Object value)
-
-
-
Constructor Detail
-
JacksonObjectMapper
public JacksonObjectMapper()
-
JacksonObjectMapper
public JacksonObjectMapper(Consumer<com.fasterxml.jackson.databind.ObjectMapper> configurations)
Pass in any additional ObjectMapper configurations you want- Parameters:
configurations- consumer of confiruations to perform on the com.fasterxml.jackson.databind.ObjectMapper
-
JacksonObjectMapper
public JacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper om)
-
-
Method Detail
-
getJacksonMapper
public com.fasterxml.jackson.databind.ObjectMapper getJacksonMapper()
-
readValue
public <T> T readValue(String value, Class<T> valueType)
- Specified by:
readValuein interfaceObjectMapper
-
readValue
public <T> T readValue(String value, GenericType<T> genericType)
- Specified by:
readValuein interfaceObjectMapper
-
writeValue
public String writeValue(Object value)
- Specified by:
writeValuein interfaceObjectMapper
-
-