Migrate Apache HttpAsyncClient 4.x classes to HttpClient 5.x
MSALMigrates classes from Apache HttpAsyncClient 4.x httpasyncclient to their equivalents in HttpClient 5.x.
org. openrewrite. apache. httpclient5. UpgradeApacheHttpClient_5_AsyncClientClassMappingmod run . --recipe= org. openrewrite. apache. httpclient5. UpgradeApacheHttpClient_5_AsyncClientClassMappingInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Add comment to method invocations
- Add comment to method invocations
- Add comment to method invocations
- Add comment to method invocations
- Change method name
org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager closeIdleConnections(long, java.util.concurrent.TimeUnit)tocloseIdle - Changes an argument (or pair of arguments) to a
TimeValuefor matched method invocationsorg.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager closeIdle(long, java.util.concurrent.TimeUnit) - Migrate
PoolingNHttpClientConnectionManagertoPoolingAsyncClientConnectionManager - Use
PoolingAsyncClientConnectionManagerBuilderfor configuration - Change type
NHttpClientConnectionManagertoAsyncClientConnectionManager - Change type
org.apache.http.nio.client.HttpAsyncClienttoorg.apache.hc.client5.http.async.HttpAsyncClient