@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 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,? extends 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 com.google.common.base.Function<? super Object,? extends 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 © 2014. All rights reserved.