private Client buildHttpClient(boolean debugging) {
    final ClientConfig clientConfig = new ClientConfig();
    clientConfig.register(MultiPartFeature.class);
    clientConfig.register(json);
    clientConfig.register(JacksonFeature.class);
    if (debugging) {
      clientConfig.register(LoggingFilter.class);
    }
    return ClientBuilder.newClient(clientConfig);
  }
private Client buildHttpClient(boolean debugging) {
    final ClientConfig clientConfig = new ClientConfig();
    clientConfig.register(MultiPartFeature.class);
    clientConfig.register(json);
    clientConfig.register(JacksonFeature.class);
    if (debugging) {
      clientConfig.register(LoggingFilter.class);
    }
    return ClientBuilder.newClient(clientConfig);
  }
private Client buildHttpClient ( boolean debugging ) { final ClientConfig clientConfig = new ClientConfig ( ) ; clientConfig . register ( MultiPartFeature . class ) ; clientConfig . register ( json ) ; clientConfig . register ( JacksonFeature . class ) ; if ( debugging ) { clientConfig . register ( LoggingFilter . class ) ; } return ClientBuilder . newClient ( clientConfig ) ; }
Build the Client used to make HTTP requests.
Build the Client used to make HTTP requests .