@Provider @Produces(value="application/json") public class ObjectMapperProvider extends Object implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
| Modifier and Type | Class and Description |
|---|---|
private static class |
ObjectMapperProvider.ImmutableSetDeserializer |
private static class |
ObjectMapperProvider.ImmutableSetSerializer |
private static class |
ObjectMapperProvider.SetDeserializer |
private static class |
ObjectMapperProvider.SetSerializer |
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
log |
private static com.fasterxml.jackson.databind.module.SimpleModule |
MODULE |
private static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
private static com.google.common.base.Function<? super Object,?> |
VOID_VALUE |
| Constructor and Description |
|---|
ObjectMapperProvider() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.ObjectMapper |
getContext(Class<?> type) |
(package private) static com.fasterxml.jackson.databind.ObjectMapper |
objectMapper() |
private static final org.slf4j.Logger log
private static final com.google.common.base.Function<? super Object,?> VOID_VALUE
private static final com.fasterxml.jackson.databind.module.SimpleModule MODULE
private static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>static com.fasterxml.jackson.databind.ObjectMapper objectMapper()
Copyright © 2016. All rights reserved.