예제 #1
0
 public void destroy() throws Exception {
   httpClient.destroy();
 }
예제 #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());
 }