hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1039062 - in /httpcomponents/httpasyncclient/trunk/src: examples/org/apache/http/examples/nio/client/ main/java/org/apache/http/impl/nio/client/ main/java/org/apache/http/nio/client/ test/java/org/apache/http/impl/nio/client/
Date Thu, 25 Nov 2010 14:27:25 GMT
Author: olegk
Date: Thu Nov 25 14:27:25 2010
New Revision: 1039062

URL: http://svn.apache.org/viewvc?rev=1039062&view=rev
Log:
Renamed classes

Added:
    httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncClient.java
      - copied, changed from r1039059, httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicAsyncHttpClient.java
    httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/HttpAsyncClient.java
      - copied, changed from r1039053, httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/AsyncHttpClient.java
Removed:
    httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicAsyncHttpClient.java
    httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/AsyncHttpClient.java
Modified:
    httpcomponents/httpasyncclient/trunk/src/examples/org/apache/http/examples/nio/client/AsyncClientRequest.java
    httpcomponents/httpasyncclient/trunk/src/test/java/org/apache/http/impl/nio/client/TestHttpAsync.java

Modified: httpcomponents/httpasyncclient/trunk/src/examples/org/apache/http/examples/nio/client/AsyncClientRequest.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/src/examples/org/apache/http/examples/nio/client/AsyncClientRequest.java?rev=1039062&r1=1039061&r2=1039062&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/src/examples/org/apache/http/examples/nio/client/AsyncClientRequest.java
(original)
+++ httpcomponents/httpasyncclient/trunk/src/examples/org/apache/http/examples/nio/client/AsyncClientRequest.java
Thu Nov 25 14:27:25 2010
@@ -32,11 +32,11 @@ import java.util.concurrent.Future;
 
 import org.apache.http.HttpHost;
 import org.apache.http.HttpResponse;
-import org.apache.http.impl.nio.client.BasicAsyncHttpClient;
+import org.apache.http.impl.nio.client.BasicHttpAsyncClient;
 import org.apache.http.impl.nio.conn.BasicIOSessionManager;
 import org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
 import org.apache.http.message.BasicHttpRequest;
-import org.apache.http.nio.client.AsyncHttpClient;
+import org.apache.http.nio.client.HttpAsyncClient;
 import org.apache.http.params.CoreConnectionPNames;
 import org.apache.http.params.CoreProtocolPNames;
 import org.apache.http.params.HttpParams;
@@ -57,7 +57,7 @@ public class AsyncClientRequest {
         sessmrg.setTotalMax(5);
         sessmrg.setDefaultMaxPerHost(3);
 
-        AsyncHttpClient asynchttpclient = new BasicAsyncHttpClient(
+        HttpAsyncClient asynchttpclient = new BasicHttpAsyncClient(
                 ioReactor,
                 sessmrg,
                 params);

Copied: httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncClient.java
(from r1039059, httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicAsyncHttpClient.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncClient.java?p2=httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncClient.java&p1=httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicAsyncHttpClient.java&r1=1039059&r2=1039062&rev=1039062&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicAsyncHttpClient.java
(original)
+++ httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/impl/nio/client/BasicHttpAsyncClient.java
Thu Nov 25 14:27:25 2010
@@ -40,7 +40,7 @@ import org.apache.http.conn.routing.Http
 import org.apache.http.impl.DefaultConnectionReuseStrategy;
 import org.apache.http.impl.nio.conn.BasicIOSessionManager;
 import org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
-import org.apache.http.nio.client.AsyncHttpClient;
+import org.apache.http.nio.client.HttpAsyncClient;
 import org.apache.http.nio.client.HttpAsyncExchangeHandler;
 import org.apache.http.nio.concurrent.FutureCallback;
 import org.apache.http.nio.conn.IOSessionManager;
@@ -60,7 +60,7 @@ import org.apache.http.protocol.RequestE
 import org.apache.http.protocol.RequestTargetHost;
 import org.apache.http.protocol.RequestUserAgent;
 
-public class BasicAsyncHttpClient implements AsyncHttpClient {
+public class BasicHttpAsyncClient implements HttpAsyncClient {
 
     private final Log log;
     private final HttpParams params;
@@ -69,7 +69,7 @@ public class BasicAsyncHttpClient implem
 
     private Thread reactorThread;
 
-    public BasicAsyncHttpClient(
+    public BasicHttpAsyncClient(
             final ConnectingIOReactor ioReactor,
             final IOSessionManager<HttpRoute> sessmrg,
             final HttpParams params) throws IOReactorException {
@@ -84,7 +84,7 @@ public class BasicAsyncHttpClient implem
         this.sessmrg = sessmrg;
     }
 
-    public BasicAsyncHttpClient(final HttpParams params) throws IOReactorException {
+    public BasicHttpAsyncClient(final HttpParams params) throws IOReactorException {
         super();
         this.log = LogFactory.getLog(getClass());
         if (params != null) {

Copied: httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/HttpAsyncClient.java
(from r1039053, httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/AsyncHttpClient.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/HttpAsyncClient.java?p2=httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/HttpAsyncClient.java&p1=httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/AsyncHttpClient.java&r1=1039053&r2=1039062&rev=1039062&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/AsyncHttpClient.java
(original)
+++ httpcomponents/httpasyncclient/trunk/src/main/java/org/apache/http/nio/client/HttpAsyncClient.java
Thu Nov 25 14:27:25 2010
@@ -34,7 +34,7 @@ import org.apache.http.HttpResponse;
 import org.apache.http.nio.concurrent.FutureCallback;
 import org.apache.http.nio.reactor.IOReactorStatus;
 
-public interface AsyncHttpClient {
+public interface HttpAsyncClient {
 
     void start();
 

Modified: httpcomponents/httpasyncclient/trunk/src/test/java/org/apache/http/impl/nio/client/TestHttpAsync.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/src/test/java/org/apache/http/impl/nio/client/TestHttpAsync.java?rev=1039062&r1=1039061&r2=1039062&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/src/test/java/org/apache/http/impl/nio/client/TestHttpAsync.java
(original)
+++ httpcomponents/httpasyncclient/trunk/src/test/java/org/apache/http/impl/nio/client/TestHttpAsync.java
Thu Nov 25 14:27:25 2010
@@ -13,7 +13,7 @@ import org.apache.http.client.methods.Ht
 import org.apache.http.impl.nio.conn.BasicIOSessionManager;
 import org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
 import org.apache.http.localserver.ServerTestBase;
-import org.apache.http.nio.client.AsyncHttpClient;
+import org.apache.http.nio.client.HttpAsyncClient;
 import org.apache.http.nio.entity.NByteArrayEntity;
 import org.apache.http.nio.reactor.ConnectingIOReactor;
 import org.apache.http.params.BasicHttpParams;
@@ -27,7 +27,7 @@ public class TestHttpAsync extends Serve
 
     private HttpHost target;
     private BasicIOSessionManager sessionManager;
-    private AsyncHttpClient httpclient;
+    private HttpAsyncClient httpclient;
 
     @Before
     public void setUp() throws Exception {
@@ -37,7 +37,7 @@ public class TestHttpAsync extends Serve
         this.target = new HttpHost("localhost", port);
         ConnectingIOReactor ioReactor = new DefaultConnectingIOReactor(2, new BasicHttpParams());
         this.sessionManager = new BasicIOSessionManager(ioReactor);
-        this.httpclient = new BasicAsyncHttpClient(ioReactor, this.sessionManager, null);
+        this.httpclient = new BasicHttpAsyncClient(ioReactor, this.sessionManager, null);
     }
 
     @After



Mime
View raw message