You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2011/08/06 13:05:53 UTC

svn commit: r1154487 - in /httpcomponents/httpcore/trunk: httpcore-nio/src/examples/org/apache/http/examples/nio/ httpcore/src/examples/org/apache/http/examples/

Author: olegk
Date: Sat Aug  6 11:05:53 2011
New Revision: 1154487

URL: http://svn.apache.org/viewvc?rev=1154487&view=rev
Log:
Fixed examples broken by recent API changes

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java
    httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalPoolingHttpGet.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java?rev=1154487&r1=1154486&r2=1154487&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java Sat Aug  6 11:05:53 2011
@@ -82,8 +82,8 @@ public class NHttpClient {
 
         BasicNIOConnPool pool = new BasicNIOConnPool(ioReactor, params);
         // Limit total number of connections to just two
-        pool.setDefaultMaxPerHost(2);
-        pool.setTotalMax(2);
+        pool.setDefaultMaxPerRoute(2);
+        pool.setMaxTotal(2);
 
         HttpProcessor httpproc = new ImmutableHttpProcessor(new HttpRequestInterceptor[] {
                 new RequestContent(),

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java?rev=1154487&r1=1154486&r2=1154487&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpSSLClient.java Sat Aug  6 11:05:53 2011
@@ -84,8 +84,8 @@ public class NHttpSSLClient {
 
         BasicNIOConnPool pool = new BasicNIOConnPool(ioReactor, params);
         // Limit total number of connections to just two
-        pool.setDefaultMaxPerHost(2);
-        pool.setTotalMax(2);
+        pool.setDefaultMaxPerRoute(2);
+        pool.setMaxTotal(2);
 
         HttpProcessor httpproc = new ImmutableHttpProcessor(new HttpRequestInterceptor[] {
                 new RequestContent(),

Modified: httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalPoolingHttpGet.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalPoolingHttpGet.java?rev=1154487&r1=1154486&r2=1154487&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalPoolingHttpGet.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalPoolingHttpGet.java Sat Aug  6 11:05:53 2011
@@ -86,8 +86,8 @@ public class ElementalPoolingHttpGet {
         final HttpRequestExecutor httpexecutor = new HttpRequestExecutor();
 
         final BasicConnPool pool = new BasicConnPool(params);
-        pool.setDefaultMaxPerHost(2);
-        pool.setTotalMax(2);
+        pool.setDefaultMaxPerRoute(2);
+        pool.setMaxTotal(2);
 
         HttpHost[] targets = {
                 new HttpHost("www.google.com", 80),