hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r500387 - /jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/conn/impl/MultiThreadedHttpConnectionManager.java
Date Fri, 26 Jan 2007 22:28:36 GMT
Author: rolandw
Date: Fri Jan 26 14:28:35 2007
New Revision: 500387

URL: http://svn.apache.org/viewvc?view=rev&rev=500387
Log:
it's not quite gone yet :-)

Modified:
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/conn/impl/MultiThreadedHttpConnectionManager.java

Modified: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/conn/impl/MultiThreadedHttpConnectionManager.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/conn/impl/MultiThreadedHttpConnectionManager.java?view=diff&rev=500387&r1=500386&r2=500387
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/conn/impl/MultiThreadedHttpConnectionManager.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/conn/impl/MultiThreadedHttpConnectionManager.java
Fri Jan 26 14:28:35 2007
@@ -1104,11 +1104,27 @@
             }
         }
 
+        public int getLocalPort() {
+            if (hasConnection()) {
+                return wrappedConnection.getLocalPort();
+            } else {
+                return -1;
+            }
+        }
+
         public InetAddress getRemoteAddress() {
             if (hasConnection()) {
                 return wrappedConnection.getRemoteAddress();
             } else {
                 return null;
+            }
+        }
+
+        public int getRemotePort() {
+            if (hasConnection()) {
+                return wrappedConnection.getRemotePort();
+            } else {
+                return -1;
             }
         }
 



Mime
View raw message