Ejemplo n.º 1
0
  public KeystoneClient(KeystoneConfig config) {
    this.config = config;

    JacksonJsonProvider jsonProvider = new JacksonJaxbJsonProvider();
    jsonProvider.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

    this.clientConfig.getSingletons().add(jsonProvider);
  }
 protected void configureClient(ClientConfig clientConfig) {
   JacksonJsonProvider json = new JacksonJsonProvider();
   json.configure(SerializationFeature.WRITE_NULL_MAP_VALUES, false);
   clientConfig.register(json);
   clientConfig.connectorProvider(new GrizzlyConnectorProvider());
 }