hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r542200 - in /jakarta/httpcomponents/httpclient/trunk/module-client/src: examples/org/apache/http/examples/conn/ main/java/org/apache/http/impl/conn/
Date Mon, 28 May 2007 11:24:36 GMT
Author: olegk
Date: Mon May 28 04:24:35 2007
New Revision: 542200

URL: http://svn.apache.org/viewvc?view=rev&rev=542200
Log:
params refactoring, step 5: removed params argument from HttpClientConnection#receiveResponseHeader
and HttpServerConnection#receiveRequestHeader methods

Modified:
    jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectDirect.java
    jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectProxy.java
    jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectDirect.java
    jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectProxy.java
    jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
    jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectDirect.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectDirect.java?view=diff&rev=542200&r1=542199&r2=542200
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectDirect.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectDirect.java
Mon May 28 04:24:35 2007
@@ -117,7 +117,7 @@
             conn.flush();
 
             System.out.println("receiving response header");
-            HttpResponse rsp = conn.receiveResponseHeader(getParams());
+            HttpResponse rsp = conn.receiveResponseHeader();
 
             System.out.println("----------------------------------------");
             System.out.println(rsp.getStatusLine());

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectProxy.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectProxy.java?view=diff&rev=542200&r1=542199&r2=542200
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectProxy.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/ManagerConnectProxy.java
Mon May 28 04:24:35 2007
@@ -124,7 +124,7 @@
             conn.flush();
 
             System.out.println("receiving confirmation for tunnel");
-            HttpResponse connected = conn.receiveResponseHeader(getParams());
+            HttpResponse connected = conn.receiveResponseHeader();
             System.out.println("----------------------------------------");
             printResponseHeader(connected);
             System.out.println("----------------------------------------");
@@ -149,7 +149,7 @@
             conn.flush();
 
             System.out.println("receiving response header");
-            HttpResponse rsp = conn.receiveResponseHeader(getParams());
+            HttpResponse rsp = conn.receiveResponseHeader();
 
             System.out.println("----------------------------------------");
             printResponseHeader(rsp);

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectDirect.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectDirect.java?view=diff&rev=542200&r1=542199&r2=542200
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectDirect.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectDirect.java
Mon May 28 04:24:35 2007
@@ -111,7 +111,7 @@
         conn.flush();
 
         System.out.println("receiving response header");
-        HttpResponse rsp = conn.receiveResponseHeader(getParams());
+        HttpResponse rsp = conn.receiveResponseHeader();
 
         System.out.println("----------------------------------------");
         System.out.println(rsp.getStatusLine());

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectProxy.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectProxy.java?view=diff&rev=542200&r1=542199&r2=542200
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectProxy.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/conn/OperatorConnectProxy.java
Mon May 28 04:24:35 2007
@@ -117,7 +117,7 @@
         conn.flush();
 
         System.out.println("receiving confirmation for tunnel");
-        HttpResponse connected = conn.receiveResponseHeader(getParams());
+        HttpResponse connected = conn.receiveResponseHeader();
         System.out.println("----------------------------------------");
         printResponseHeader(connected);
         System.out.println("----------------------------------------");
@@ -147,7 +147,7 @@
         conn.flush();
 
         System.out.println("receiving response header");
-        HttpResponse rsp = conn.receiveResponseHeader(getParams());
+        HttpResponse rsp = conn.receiveResponseHeader();
 
         System.out.println("----------------------------------------");
         printResponseHeader(rsp);

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java?view=diff&rev=542200&r1=542199&r2=542200
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
Mon May 28 04:24:35 2007
@@ -38,13 +38,11 @@
 import org.apache.http.HttpRequest;
 import org.apache.http.HttpEntityEnclosingRequest;
 import org.apache.http.HttpResponse;
-import org.apache.http.params.HttpParams;
 import org.apache.http.conn.OperatedClientConnection;
 import org.apache.http.conn.ManagedClientConnection;
 import org.apache.http.conn.ClientConnectionManager;
 
 
-
 /**
  * Abstract adapter from {@link OperatedClientConnection operated} to
  * {@link ManagedClientConnection managed} client connections.
@@ -180,12 +178,12 @@
 
 
     // non-javadoc, see interface HttpClientConnection
-    public HttpResponse receiveResponseHeader(HttpParams params)
+    public HttpResponse receiveResponseHeader()
         throws HttpException, IOException {
 
         assertWrappedConn();
         markedReusable = false;
-        return wrappedConnection.receiveResponseHeader(params);
+        return wrappedConnection.receiveResponseHeader();
     }
 
 

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java?view=diff&rev=542200&r1=542199&r2=542200
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnection.java
Mon May 28 04:24:35 2007
@@ -208,9 +208,8 @@
     } // update
 
 
-    public HttpResponse receiveResponseHeader(
-            final HttpParams params) throws HttpException, IOException {
-        HttpResponse response = super.receiveResponseHeader(params);
+    public HttpResponse receiveResponseHeader() throws HttpException, IOException {
+        HttpResponse response = super.receiveResponseHeader();
         if (HEADERS_LOG.isDebugEnabled()) {
             HEADERS_LOG.debug("<< " + response.getStatusLine().toString());
             Header[] headers = response.getAllHeaders();



Mime
View raw message