hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1809625 - /httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java
Date Mon, 25 Sep 2017 13:15:03 GMT
Author: olegk
Date: Mon Sep 25 13:15:03 2017
New Revision: 1809625

URL: http://svn.apache.org/viewvc?rev=1809625&view=rev
Log:
Corrected quick start example

Modified:
    httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java

Modified: httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java?rev=1809625&r1=1809624&r2=1809625&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java
(original)
+++ httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java
Mon Sep 25 13:15:03 2017
@@ -117,19 +117,19 @@ public class QuickStart {
                 @Override
                 public void completed(final HttpResponse response3) {
                     latch2.countDown();
-                    System.out.println(request2.getRequestLine() + "->" + response3.getStatusLine());
+                    System.out.println(request3.getRequestLine() + "->" + response3.getStatusLine());
                 }
 
                 @Override
                 public void failed(final Exception ex) {
                     latch2.countDown();
-                    System.out.println(request2.getRequestLine() + "->" + ex);
+                    System.out.println(request3.getRequestLine() + "->" + ex);
                 }
 
                 @Override
                 public void cancelled() {
                     latch2.countDown();
-                    System.out.println(request2.getRequestLine() + " cancelled");
+                    System.out.println(request3.getRequestLine() + " cancelled");
                 }
 
             });



Mime
View raw message