connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/SparqlEndpointInterface.java
protected HttpClient buildHttpClient(String schemeName) throws Exception {
		
		HttpClientBuilder clientBuilder = HttpClientBuilder.create();
		clientBuilder.setConnectionManager(SparqlEndpointInterface.manager);
		
		// add userName and password, if any
		if (this.isAuth()) {
			CredentialsProvider credsProvider = new BasicCredentialsProvider();
			credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(this.userName, this.password));
	        clientBuilder.setDefaultCredentialsProvider(credsProvider);
		} 
		
		// if https, use SSL context that will not validate certificate
		if(schemeName.equalsIgnoreCase("https")){
			clientBuilder.setSSLContext(getTrustingSSLContext());
		}
		
		return clientBuilder.build();
	}
/**
	 * Get an HttpClient, handling credentials and HTTPS if needed
	 * NOTE: for HTTPS connections, does not validate certificate chain.
	 * @schemeName http or https
	 */
Get an HttpClient, handling credentials and HTTPS if needed
NOTE: for HTTPS connections, does not validate certificate chain.
@schemeName http or https
Get an HttpClient handling credentials and HTTPS if needed NOTE : for HTTPS connections does not validate certificate chain . @schemeName http or https
protected HttpClient buildHttpClient(String schemeName) throws Exception {
		HttpClientBuilder clientBuilder = HttpClientBuilder.create();
		clientBuilder.setConnectionManager(SparqlEndpointInterface.manager);
		if (this.isAuth()) {
			CredentialsProvider credsProvider = new BasicCredentialsProvider();
			credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(this.userName, this.password));
	        clientBuilder.setDefaultCredentialsProvider(credsProvider);
		} 
		if(schemeName.equalsIgnoreCase("https")){
			clientBuilder.setSSLContext(getTrustingSSLContext());
		}
		return clientBuilder.build();
	}
protected HttpClient buildHttpClient ( String schemeName ) throws Exception { HttpClientBuilder clientBuilder = HttpClientBuilder . create ( ) ; clientBuilder . setConnectionManager ( SparqlEndpointInterface . manager ) ; if ( this . isAuth ( ) ) { CredentialsProvider credsProvider = new BasicCredentialsProvider ( ) ; credsProvider . setCredentials ( AuthScope . ANY , new UsernamePasswordCredentials ( this . userName , this . password ) ) ; clientBuilder . setDefaultCredentialsProvider ( credsProvider ) ; } if ( schemeName . equalsIgnoreCase ( "https" ) ) { clientBuilder . setSSLContext ( getTrustingSSLContext ( ) ) ; } return clientBuilder . build ( ) ; }
Get an HttpClient, handling credentials and HTTPS if needed
 NOTE: for HTTPS connections, does not validate certificate chain.
Get an HttpClient handling credentials and HTTPS if needed NOTE : for HTTPS connections does not validate certificate chain .
// add userName and password, if any // if https, use SSL context that will not validate certificate