@Immutable @Provider public class JacksonObjectMapperProvider extends Object implements javax.ws.rs.ext.ContextResolver<org.codehaus.jackson.map.ObjectMapper>
2012-06-20T07:00:00
into Zulu time 2012-06-20T07:00:00Z
This leads to problems if transforming into a Date or DateTime (although Joda's LocalDateTime would work fine)Modifier and Type | Class and Description |
---|---|
protected static class |
JacksonObjectMapperProvider.SocrataDateFormat
A class that special cases ISO 8601 dates, and assumes that no "Z" at
the end means that it should be translated as local time instead of Zulu time.
|
Modifier and Type | Field and Description |
---|---|
protected static SimpleDateFormat |
SOCRATA_FLOATING_FORMAT |
protected static SimpleDateFormat |
SOCRATA_FLOATING_FORMAT_MILLIS |
protected static SimpleDateFormat |
SOCRATA_WRITING_FORMAT |
protected static DateFormat[] |
SPECIAL_DATE_LIST |
Constructor and Description |
---|
JacksonObjectMapperProvider() |
protected static final SimpleDateFormat SOCRATA_WRITING_FORMAT
protected static final SimpleDateFormat SOCRATA_FLOATING_FORMAT
protected static final SimpleDateFormat SOCRATA_FLOATING_FORMAT_MILLIS
protected static final DateFormat[] SPECIAL_DATE_LIST
public org.codehaus.jackson.map.ObjectMapper getContext(Class<?> type)
getContext
in interface javax.ws.rs.ext.ContextResolver<org.codehaus.jackson.map.ObjectMapper>
Copyright © 2013. All Rights Reserved.