use of org.ff4j.web.api.FF4jJacksonMapper in project ff4j by ff4j.
the class ClientHttpJersey1Utils method buildJersey1Client.
/**
* Initializing jerseyClient.
*/
public static Client buildJersey1Client() {
ClientConfig config = new DefaultClientConfig();
config.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
config.getSingletons().add(new JacksonJsonProvider());
config.getSingletons().add(new FF4jJacksonMapper());
return Client.create(config);
}
Aggregations