@Produces(value="application/json") public class JacksonContextResolver extends Object implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
ContextResolver to replace default Jackson ObjectMapper for JSON marshalling with an
ObjectMapper with PropertyBox handling capabilities.| Constructor and Description |
|---|
JacksonContextResolver(boolean prettyPrint)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.ObjectMapper |
getContext(Class<?> type) |
public JacksonContextResolver(boolean prettyPrint)
prettyPrint - true to enable pretty printing of serialized JSONpublic com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>Copyright © 2019 The Holon Platform. All rights reserved.