geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r573096 - in /geronimo/sandbox/AsyncHttpClient/src: main/java/org/apache/ahc/ main/java/org/apache/ahc/codec/ test/java/org/apache/ahc/
Date Wed, 05 Sep 2007 23:13:05 GMT
Author: jgenender
Date: Wed Sep  5 16:13:04 2007
New Revision: 573096

URL: http://svn.apache.org/viewvc?rev=573096&view=rev
Log:
Refactor names

Added:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClientCallback.java
      - copied, changed from r573094, geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AHCCallback.java
Removed:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AHCCallback.java
Modified:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
    geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AbstractTest.java

Modified: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java?rev=573096&r1=573095&r2=573096&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java (original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClient.java Wed
Sep  5 16:13:04 2007
@@ -48,18 +48,18 @@
     private String sslProtocol = DEFAULT_SSL_PROTOCOL;
     private SocketConnector connector;
     private IoSession session;
-    private AHCCallback callback;
+    private AsyncHttpClientCallback callback;
     private int requestTimeout = DEFAULT_REQUEST_TIMEOUT;
 
-    public AsyncHttpClient(URL url, AHCCallback callback) {
+    public AsyncHttpClient(URL url, AsyncHttpClientCallback callback) {
         this(url, callback,DEFAULT_CONNECTION_TIMEOUT, DEFAULT_REQUEST_TIMEOUT);
     }
 
-    public AsyncHttpClient(URL url, AHCCallback callback, int connectionTimeout) {
+    public AsyncHttpClient(URL url, AsyncHttpClientCallback callback, int connectionTimeout)
{
         this(url, callback, connectionTimeout, DEFAULT_REQUEST_TIMEOUT);
     }
 
-    public AsyncHttpClient(URL url, AHCCallback callback, int connectionTimeout, int requestTimeout)
{
+    public AsyncHttpClient(URL url, AsyncHttpClientCallback callback, int connectionTimeout,
int requestTimeout) {
         this.url = url;
         this.callback = callback;
         this.connectionTimeout = connectionTimeout;

Copied: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClientCallback.java
(from r573094, geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AHCCallback.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClientCallback.java?p2=geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClientCallback.java&p1=geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AHCCallback.java&r1=573094&r2=573096&rev=573096&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AHCCallback.java (original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/AsyncHttpClientCallback.java
Wed Sep  5 16:13:04 2007
@@ -21,7 +21,7 @@
 
 import org.apache.ahc.codec.HttpResponseMessage;
 
-public interface AHCCallback {
+public interface AsyncHttpClientCallback {
     public void onResponse(HttpResponseMessage message);
     public void onException(Throwable cause);
     public void onClosed();

Modified: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java?rev=573096&r1=573095&r2=573096&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
(original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpIoHandler.java
Wed Sep  5 16:13:04 2007
@@ -21,7 +21,7 @@
 
 import org.apache.mina.common.IoHandlerAdapter;
 import org.apache.mina.common.IoSession;
-import org.apache.ahc.AHCCallback;
+import org.apache.ahc.AsyncHttpClientCallback;
 
 import java.util.LinkedList;
 import java.util.Collections;
@@ -36,12 +36,12 @@
     public final static int DEFAULT_THREAD_POOL_SIZE = 10;
     public final static String CONNECTION_CLOSE = "close";
 
-    private AHCCallback callback;
+    private AsyncHttpClientCallback callback;
     private List<HttpRequestMessage> sentQueue = Collections.synchronizedList(new LinkedList<HttpRequestMessage>());
     private ScheduledThreadPoolExecutor scheduler = null;
     private int timeoutDelay;
 
-    public HttpIoHandler(AHCCallback callback, int timeoutDelay) {
+    public HttpIoHandler(AsyncHttpClientCallback callback, int timeoutDelay) {
         this.callback = callback;
         this.timeoutDelay = timeoutDelay;
     }

Modified: geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AbstractTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AbstractTest.java?rev=573096&r1=573095&r2=573096&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AbstractTest.java (original)
+++ geronimo/sandbox/AsyncHttpClient/src/test/java/org/apache/ahc/AbstractTest.java Wed Sep
 5 16:13:04 2007
@@ -97,7 +97,7 @@
         return dir;
     }
 
-        class TestCallback implements AHCCallback{
+        class TestCallback implements AsyncHttpClientCallback {
 
         private boolean timeout = false;
         private boolean closed = false;



Mime
View raw message