hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r703799 - /httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java
Date Sun, 12 Oct 2008 12:16:31 GMT
Author: olegk
Date: Sun Oct 12 05:16:31 2008
New Revision: 703799

URL: http://svn.apache.org/viewvc?rev=703799&view=rev
Log:
Reverted API incompatible changes: restored two protected methods

Modified:
    httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java

Modified: httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java?rev=703799&r1=703798&r2=703799&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java
(original)
+++ httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java
Sun Oct 12 05:16:31 2008
@@ -76,6 +76,26 @@
         }
     }
     
+    /**
+     * @deprecated Use {@link #createSessionInputBuffer(Socket, int, HttpParams)}
+     */
+    protected SessionInputBuffer createHttpDataReceiver(
+            final Socket socket, 
+            int buffersize,
+            final HttpParams params) throws IOException {
+        return createSessionInputBuffer(socket, buffersize, params);
+    }
+    
+    /**
+     * @deprecated Use {@link #createSessionOutputBuffer(Socket, int, HttpParams)}
+     */
+    protected SessionOutputBuffer createHttpDataTransmitter(
+            final Socket socket, 
+            int buffersize,
+            final HttpParams params) throws IOException {
+        return createSessionOutputBuffer(socket, buffersize, params);
+    }
+
     protected SessionInputBuffer createSessionInputBuffer(
             final Socket socket, 
             int buffersize,
@@ -102,8 +122,8 @@
         int buffersize = HttpConnectionParams.getSocketBufferSize(params);
         
         init(
-                createSessionInputBuffer(socket, buffersize, params), 
-                createSessionOutputBuffer(socket, buffersize, params),
+                createHttpDataReceiver(socket, buffersize, params), 
+                createHttpDataTransmitter(socket, buffersize, params),
                 params);
         
         this.open = true;



Mime
View raw message