codegenomeproject
Search
MarketplaceModules
PackagesCLIMCP
Sign in
  1. Marketplace
  2. Apache
  3. Migrate Apache HttpAsyncClient 4.x classes to HttpClient 5.x

Migrate Apache HttpAsyncClient 4.x classes to HttpClient 5.x

MSAL

Migrates classes from Apache HttpAsyncClient 4.x httpasyncclient to their equivalents in HttpClient 5.x.

org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_AsyncClientClassMapping
mod run . --recipe=org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_AsyncClientClassMapping

Install 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.

Recipe
  1. Add comment to method invocations
  2. Add comment to method invocations
  3. Add comment to method invocations
  4. Add comment to method invocations
  5. Change method name org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager closeIdleConnections(long, java.util.concurrent.TimeUnit) to closeIdle
  6. Changes an argument (or pair of arguments) to a TimeValue for matched method invocations org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager closeIdle(long, java.util.concurrent.TimeUnit)
  7. Migrate PoolingNHttpClientConnectionManager to PoolingAsyncClientConnectionManager
  8. Use PoolingAsyncClientConnectionManagerBuilder for configuration
  9. Change type NHttpClientConnectionManager to AsyncClientConnectionManager
  10. Change type org.apache.http.nio.client.HttpAsyncClient to org.apache.hc.client5.http.async.HttpAsyncClient
© Moderne, 2026
Recipe indexPrivacyTerms