hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r159784 - jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
Date Sat, 02 Apr 2005 18:15:38 GMT
Author: olegk
Date: Sat Apr  2 10:15:38 2005
New Revision: 159784

URL: http://svn.apache.org/viewcvs?view=rev&rev=159784
Log:
Changed to make use of HttpDataReceiverFactory and HttpDataTransmitterFactory interfaces and
renamed to AbstractHttpConnection

Added:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
      - copied, changed from r159764, jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/NIOAbstractHttpConnection.java

Copied: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
(from r159764, jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/NIOAbstractHttpConnection.java)
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java?view=diff&rev=159784&p1=jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/NIOAbstractHttpConnection.java&r1=159764&p2=jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java&r2=159784
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/NIOAbstractHttpConnection.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
Sat Apr  2 10:15:38 2005
@@ -47,13 +47,13 @@
  * 
  * @since 4.0
  */
-abstract class NIOAbstractHttpConnection implements HttpConnection {
+abstract class AbstractHttpConnection implements HttpConnection {
 
     protected transient Socket socket = null;
     protected transient HttpDataTransmitter datatransmitter = null;
     protected transient HttpDataReceiver datareceiver = null;
     
-    protected NIOAbstractHttpConnection() {
+    protected AbstractHttpConnection() {
         super();
     }
     
@@ -94,8 +94,10 @@
         if (rcvBufSize >= 0) {
             this.socket.setReceiveBufferSize(rcvBufSize);
         }
-        this.datatransmitter = new NIOSocketHttpDataTransmitter(this.socket); 
-        this.datareceiver = new NIOSocketHttpDataReceiver(this.socket); 
+        this.datatransmitter = 
+            new DefaultHttpDataTransmitterFactory().create(this.socket); 
+        this.datareceiver = 
+            new DefaultHttpDataReceiverFactory().create(this.socket); 
     }
 
     public boolean isOpen() {



Mime
View raw message