我想重构一些Apache HttpClient 4.4代码以在4.5下工作,并且在此组件的细节方面不是专家。主要问题似乎是4.4代码使用的“ nio”包已在4.5中被完全替换,因此我在旧代码中有一堆无法解析的导入,这些导入是:
import org.apache.http.impl.nio.client.CloseableHttpAsyncClient;
import org.apache.http.impl.nio.client.HttpAsyncClients;
import org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager;
import org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
import org.apache.http.impl.nio.reactor.IOReactorConfig;
import org.apache.http.nio.conn.NoopIOSessionStrategy;
import org.apache.http.nio.conn.SchemeIOSessionStrategy;
import org.apache.http.nio.conn.ssl.SSLIOSessionStrategy;
如何转换这些导入,以便它们可以在4.5中使用?