* @throws IOException
*/
public GetMethod executeRequest(final URL url, final Map<String, String> queryParams,
final Integer backendTimeout) throws HttpException, IOException {
HttpClientBuilder builder = new HttpClientBuilder(url, backendTimeout, httpUsername,
httpPassword, proxyUrl);
HttpClient httpClient = builder.buildClient();
GetMethod getMethod = new GetMethod(url.toString());
if (queryParams != null && queryParams.size() > 0) {
NameValuePair[] params = new NameValuePair[queryParams.size()];
int i = 0;
for (Map.Entry<String, String> e : queryParams.entrySet()) {
params[i] = new NameValuePair(e.getKey(), e.getValue());
i++;
}
getMethod.setQueryString(params);
}
getMethod.setDoAuthentication(builder.isDoAuthentication());
httpClient.executeMethod(getMethod);
return getMethod;
}