it's not quite gone yet :-)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@500387 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roland Weber 2007-01-26 22:28:35 +00:00
parent 813eeeb00c
commit 8816f2ee43
1 changed files with 16 additions and 0 deletions

View File

@ -1104,6 +1104,14 @@ public class MultiThreadedHttpConnectionManager implements HttpConnectionManager
}
}
public int getLocalPort() {
if (hasConnection()) {
return wrappedConnection.getLocalPort();
} else {
return -1;
}
}
public InetAddress getRemoteAddress() {
if (hasConnection()) {
return wrappedConnection.getRemoteAddress();
@ -1112,6 +1120,14 @@ public class MultiThreadedHttpConnectionManager implements HttpConnectionManager
}
}
public int getRemotePort() {
if (hasConnection()) {
return wrappedConnection.getRemotePort();
} else {
return -1;
}
}
//===========================
// HttpHostConnection methods
//===========================