}
return null;
}
private RestClient createRestClient(HttpClient httpClient) {
ClientConfig config = new ApacheHttpClientConfig(httpClient);
// configureBasicAuth(config, userName, password);
config.applications(new Application() {
@Override
public Set<Class<?>> getClasses() {
return Collections.emptySet();
}
@Override
public Set<Object> getSingletons() {
Set<Object> providers = new HashSet<Object>();
providers.add(new DataBindingJAXRSReader(registry));
providers.add(new DataBindingJAXRSWriter(registry));
return providers;
}
});
config.readTimeout(binding.getReadTimeout());
RestClient client = new RestClient(config);
// Default to GET for RPC
httpMethod = HttpMethod.GET;