Search in sources :

Example 1 with Annotations

use of com.fasterxml.jackson.jaxrs.cfg.Annotations in project fabric8 by fabric8io.

the class WebClients method createProviders.

public static List<Object> createProviders() {
    List<Object> providers = new ArrayList<Object>();
    Annotations[] annotationsToUse = JacksonJaxbJsonProvider.DEFAULT_ANNOTATIONS;
    ObjectMapper objectMapper = createObjectMapper();
    providers.add(new JacksonJaxbJsonProvider(objectMapper, annotationsToUse));
    providers.add(new ExceptionResponseMapper());
    return providers;
}
Also used : Annotations(com.fasterxml.jackson.jaxrs.cfg.Annotations) ArrayList(java.util.ArrayList) JacksonJaxbJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider) JsonHelper.createObjectMapper(io.fabric8.utils.jaxrs.JsonHelper.createObjectMapper) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Annotations (com.fasterxml.jackson.jaxrs.cfg.Annotations)1 JacksonJaxbJsonProvider (com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider)1 JsonHelper.createObjectMapper (io.fabric8.utils.jaxrs.JsonHelper.createObjectMapper)1 ArrayList (java.util.ArrayList)1