this.metadataRetriever = metadataRetriever;
}
public void initializeClient(String username, String password) {
//this.layerName = null;
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpHost targetHost = new HttpHost(this.serverName, 80, "http");
if (!(username.isEmpty() && password.isEmpty())){
this.credentials = new UsernamePasswordCredentials(username, password);
httpclient.getCredentialsProvider().setCredentials(
new AuthScope(AuthScope.ANY),
this.credentials);
// Create AuthCache instance
AuthCache authCache = new BasicAuthCache();