hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r453175 - in /jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async: HttpAsyncClientConnection.java impl/SimpleHttpAsyncClientConnection.java
Date Thu, 05 Oct 2006 10:13:21 GMT
Author: olegk
Date: Thu Oct  5 03:13:19 2006
New Revision: 453175

URL: http://svn.apache.org/viewvc?view=rev&rev=453175
Log:
[HTTPCLIENT-602] refactor HttpClientConnection and HttpProxyConnection

Changelog:
----------
* Removed #getTargetHost() method from the HttpClientConnection interface 

Modified:
    jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/HttpAsyncClientConnection.java
    jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/SimpleHttpAsyncClientConnection.java

Modified: jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/HttpAsyncClientConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/HttpAsyncClientConnection.java?view=diff&rev=453175&r1=453174&r2=453175
==============================================================================
--- jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/HttpAsyncClientConnection.java
(original)
+++ jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/HttpAsyncClientConnection.java
Thu Oct  5 03:13:19 2006
@@ -45,7 +45,9 @@
 public interface HttpAsyncClientConnection extends HttpClientConnection {
 
     void open(HttpParams params) throws IOException;
-    
+
+    HttpHost getTargetHost();
+
     void setTargetHost(HttpHost targethost);
     
 }

Modified: jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/SimpleHttpAsyncClientConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/SimpleHttpAsyncClientConnection.java?view=diff&rev=453175&r1=453174&r2=453175
==============================================================================
--- jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/SimpleHttpAsyncClientConnection.java
(original)
+++ jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/SimpleHttpAsyncClientConnection.java
Thu Oct  5 03:13:19 2006
@@ -72,9 +72,13 @@
             port = 80;
         }
         Socket socket = new Socket(hostname, port);
-        bind(socket, this.targethost, params);
+        bind(socket, params);
     }    
 
+    public HttpHost getTargetHost() {
+        return this.targethost;
+    }
+    
     public void setTargetHost(final HttpHost targethost) {
         if (targethost == null) {
             throw new IllegalArgumentException("Target host may not be null");



Mime
View raw message