if (credentials.length == 2) { clientWrapper.addBasicCredentials(credentials[0], credentials[1]) .usePreemptiveAuth(); } else { LOG.warn("Unable to deduce username/password from '{}'", userinfo);
m_httpClientWrapper.usePreemptiveAuth();
clientWrapper.addBasicCredentials(ParameterMap.getKeyedString(map, "auth-user", DEFAULT_USER), ParameterMap.getKeyedString(map, "auth-password", DEFAULT_PASSWORD)); if (ParameterMap.getKeyedBoolean(map, "auth-preemptive", true)) { clientWrapper.usePreemptiveAuth();