* Fixed AbstractClientConnectionAdapter breakage caused by the latest API changes in HttpCore

* Removed unused imports

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@500374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2007-01-26 22:06:08 +00:00
parent a0711fb641
commit 813eeeb00c
3 changed files with 16 additions and 13 deletions

View File

@ -32,13 +32,11 @@
package org.apache.http.conn;
import java.io.IOException;
import java.net.Socket;
import org.apache.http.HttpClientConnection;
import org.apache.http.HttpHost;
import org.apache.http.HttpInetConnection;
import org.apache.http.protocol.HttpContext;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HttpContext;
/**

View File

@ -170,6 +170,12 @@ public abstract class AbstractClientConnectionAdapter
return wrappedConnection.getLocalAddress();
}
// non-javadoc, see interface HttpInetConnection
public int getLocalPort() {
assertWrappedConn();
return wrappedConnection.getLocalPort();
}
// non-javadoc, see interface HttpInetConnection
public InetAddress getRemoteAddress() {
@ -177,6 +183,11 @@ public abstract class AbstractClientConnectionAdapter
return wrappedConnection.getRemoteAddress();
}
// non-javadoc, see interface HttpInetConnection
public int getRemotePort() {
assertWrappedConn();
return wrappedConnection.getRemotePort();
}
// non-javadoc, see interface ManagedClientConnection
public boolean isSecure() {

View File

@ -34,8 +34,6 @@ import java.io.IOException;
import java.lang.ref.Reference;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.net.InetAddress;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@ -45,21 +43,17 @@ import java.util.WeakHashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HttpEntityEnclosingRequest;
import org.apache.http.HttpException;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.ClientConnectionOperator;
import org.apache.http.conn.ConnectionPoolTimeoutException;
import org.apache.http.conn.HostConfiguration;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.ManagedClientConnection;
import org.apache.http.conn.ClientConnectionOperator;
import org.apache.http.conn.OperatedClientConnection;
import org.apache.http.conn.params.HttpConnectionManagerParams;
import org.apache.http.protocol.HttpContext;
import org.apache.http.params.HttpParams;
import org.apache.http.impl.DefaultHttpParams;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HttpContext;
/**