Search in sources :

Example 1 with JsonProcessingFeature

use of org.glassfish.jersey.jsonp.JsonProcessingFeature in project Payara by payara.

the class RestUtil method getJerseyClient.

public static synchronized Client getJerseyClient() {
    if (JERSEY_CLIENT == null) {
        JERSEY_CLIENT = initialize(ClientBuilder.newBuilder()).build();
        JERSEY_CLIENT.register(new RequiredHeadersFilter()).register(new JsonProcessingFeature());
    }
    return JERSEY_CLIENT;
}
Also used : JsonProcessingFeature(org.glassfish.jersey.jsonp.JsonProcessingFeature)

Aggregations

JsonProcessingFeature (org.glassfish.jersey.jsonp.JsonProcessingFeature)1