* 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:
parent
a0711fb641
commit
813eeeb00c
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue