Package com.spotify.docker.client
Class ObjectMapperProvider
java.lang.Object
com.spotify.docker.client.ObjectMapperProvider
- All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
@Provider
@Produces("application/json")
public class ObjectMapperProvider
extends Object
implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.common.base.Function
<? super Object, ?> private static final org.slf4j.Logger
private static final com.fasterxml.jackson.databind.module.SimpleModule
private static final com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper
getContext
(Class<?> type) static com.fasterxml.jackson.databind.ObjectMapper
-
Field Details
-
log
private static final org.slf4j.Logger log -
EMPTY_MAP
-
MODULE
private static final com.fasterxml.jackson.databind.module.SimpleModule MODULE -
OBJECT_MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
-
-
Constructor Details
-
ObjectMapperProvider
public ObjectMapperProvider()
-
-
Method Details
-
getContext
- Specified by:
getContext
in interfacejavax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
objectMapper
public static com.fasterxml.jackson.databind.ObjectMapper objectMapper()
-