geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r567186 - in /geronimo/sandbox/AsyncHttpClient/src: main/java/org/apache/ahc/AsyncHttpClient.java main/java/org/apache/ahc/AsyncHttpConnection.java test/java/org/apache/ahc/AsyncHttpConnectionTest.java
Date Sat, 18 Aug 2007 00:09:11 GMT
Author: jgenender
Date: Fri Aug 17 17:09:10 2007
New Revision: 567186

URL: http://svn.apache.org/viewvc?view=rev&rev=567186
Log:
Refactor a bit

Added:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java
      - copied, changed from r567185, geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpConnection.java
Removed:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpConnection.java
Modified:
    geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AsyncHttpConnectionTest.java

Copied: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java
(from r567185, geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpConnection.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java?view=diff&rev=567186&p1=geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpConnection.java&r1=567185&p2=geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java&r2=567186
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpConnection.java
(original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java Fri
Aug 17 17:09:10 2007
@@ -35,7 +35,7 @@
 import java.security.GeneralSecurityException;
 import java.io.IOException;
 
-public class AsyncHttpConnection {
+public class AsyncHttpClient {
 
     public static int DEFAULT_CONNECTION_TIMEOUT = 30;
     public static String DEFAULT_SSL_PROTOCOL = "TLS";
@@ -48,7 +48,7 @@
     private IoSession session;
     private AHCCallback callback;
 
-    public AsyncHttpConnection(URL url, AHCCallback callback) {
+    public AsyncHttpClient(URL url, AHCCallback callback) {
         this.url = url;
         this.callback = callback;
     }

Modified: geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AsyncHttpConnectionTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AsyncHttpConnectionTest.java?view=diff&rev=567186&r1=567185&r2=567186
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AsyncHttpConnectionTest.java
(original)
+++ geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AsyncHttpConnectionTest.java
Fri Aug 17 17:09:10 2007
@@ -23,7 +23,6 @@
 import org.apache.ahc.codec.HttpResponseMessage;
 
 import java.net.URL;
-import java.security.MessageDigest;
 import java.io.File;
 import java.io.FileInputStream;
 import java.util.Arrays;
@@ -67,7 +66,7 @@
     private void doConnection(TestCallback callback, String url, String uri, boolean testForException)
throws Exception {
         URL url_connect = new URL(url);
 
-        AsyncHttpConnection ahc = new AsyncHttpConnection(url_connect, callback);
+        AsyncHttpClient ahc = new AsyncHttpClient(url_connect, callback);
         ahc.connect();
 
         HttpRequestMessage request = new HttpRequestMessage(uri);



Mime
View raw message