@Provider @Produces(value={"application/json","application/hal+json"}) public class JacksonConfigurator extends Object implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
Modifier and Type | Field and Description |
---|---|
static String |
dateFormatString |
static String |
DEFAULT_DATE_FORMAT |
Constructor and Description |
---|
JacksonConfigurator() |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) |
com.fasterxml.jackson.databind.ObjectMapper |
getContext(Class<?> clazz) |
static void |
setDateFormatString(String dateFormatString) |
public static final String DEFAULT_DATE_FORMAT
public static String dateFormatString
public static com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> clazz)
getContext
in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
public static void setDateFormatString(String dateFormatString)
Copyright © 2020. All rights reserved.