requests[i] = new HttpGet(ARTICLELIST_URL_STRING + "/start:" + i*100);
}
final CountDownLatch latch = new CountDownLatch(requests.length);
stringBuilder.append("<ol>");
for (final HttpGet request: requests) {
httpclient.execute(request, new FutureCallback<HttpResponse>() {
public void completed(final HttpResponse response) {
BasicResponseHandler handler = new BasicResponseHandler();
latch.countDown();
stringBuilder.append("<li>" + request.getRequestLine() + "->" + response.getStatusLine() + "</li>");
System.out.println(request.getRequestLine() + "->" + response.getStatusLine());