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:
parent
813eeeb00c
commit
8816f2ee43
|
@ -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
|
||||
//===========================
|
||||
|
|
Loading…
Reference in New Issue