public void destroy() throws Exception { httpClient.destroy(); }
private Request newRequest(final URI uri) { final Header authenticateHeader = BasicScheme.authenticate(credentials, "UTF-8", false); return httpClient .newRequest(uri) .setHeader(authenticateHeader.getName(), authenticateHeader.getValue()); }