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