AsyncHttpClient client = new DefaultAsyncHttpClient();
try {
Promise<Response, Throwable, HttpProgress> p1 = AsyncHttpDeferredObject.promise(client.prepareGet("http://www.ning.com"));
Promise<Response, Throwable, HttpProgress> p2 = AsyncHttpDeferredObject.promise(client.prepareGet("http://www.google.com"));
AsyncHttpDeferredObject deferredRequest = new AsyncHttpDeferredObject(client.prepareGet("http://jdeferred.org"));
deferredManager.when(p1, p2, deferredRequest).then(new DoneCallback<MultipleResults>() {
@Override
public void onDone(MultipleResults result) {
try {