Class JacksonContextResolver
- java.lang.Object
-
- com.levigo.jadice.server.rest.json.JacksonContextResolver
-
- All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
@Provider public class JacksonContextResolver extends Object implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
Provides a JacksonObjectMapper
that serializesXMLGregorianCalendar
not as unix time stamps but as XML time stamps.- See Also:
- XSD Date and Time Data Types,
LogEntryDTO
-
-
Constructor Summary
Constructors Constructor Description JacksonContextResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.ObjectMapper
getContext(Class<?> clazz)
-
-
-
Method Detail
-
getContext
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> clazz)
- Specified by:
getContext
in interfacejavax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
-